条纹错误无法识别的请求 URL (POST: /v1/customers/)

Stripe Error Unrecognized request URL (POST: /v1/customers/)

我正在尝试为客户更新卡,但 运行 出现以下错误:

无法识别的请求 URL(POST:/v1/customers/)。如果您尝试列出对象,请删除结尾的斜杠。如果您尝试检索对象,请确保您在代码中传递了有效(非空)标识符。请参阅 https://stripe.com/docs or we can help at https://support.stripe.com/

public function create_payment( $meta ) {
        
        try {
            
            return \Stripe\Customer::update( $meta );
        } catch ( \Exception $e ) {

            return $this->get_error( $e );
        }
        
    }

我传递的数组是:

Array ( [0] => cus_Ki70TVjxbH5Iyj [1] => Array ( [default_source] => card_1K2iuHEnwinWAjhjSN00IXjp ) )

问题是尾部斜杠被传递到 API,这导致了错误。现已修复