Tokuhiro Chino
Tokuhiro Chino
Update: I checked on several situation, and found - Detach payment method from local development server succeeds, but fails from production server. - Stripe Acount is not problem. I tried...
Update2: I put print_r in request() method of BaseStripeClient.php and checked variables. - $path: '/v1/payment_methods/pm_1QtTk0ILJ31lMCkXPi3BNoeZ/detach' - $method: 'post' - $baseUrl: 'https://api.stripe.com' Seems no problem, but request to api fails after...
Update3: I think there's nothing I can do anymore. But, I'm in hurry. - The Japanese law of e-commerce will take effect at the end of March. - I have...
Hi @helenye-stripe, Thank you for your reply. I checked null bytes like below. I put error_log() in _requestRaw() method in ApiRequestor.php of php-stripe. As you mentioned, _requestRaw() checks if $absUrl...
I put this code. ``` $stripe->paymentMethods->detach('pm_1QtoxCILJ31lMCkXYjtNUGOK', []); ``` result is, ``` [19-Feb-2025 07:41:01 UTC] method: post [19-Feb-2025 07:41:01 UTC] absUrl: https://api.stripe.com/v1/payment_methods/pm_1QtoxCILJ31lMCkXYjtNUGOK/detach [19-Feb-2025 07:41:01 UTC] rawHeaders [19-Feb-2025 07:41:01 UTC] 0 =>...
Update: I was just curious if call detach with parameters. So, I put code below and run. ``` $stripe->paymentMethods->detach('pm_1QtoxCILJ31lMCkXYjtNUGOK', ['test_param' => true]); ``` Then I got, ``` [19-Feb-2025 11:57:55 UTC]...
I checked rawHeaders of local development server, and I found some difference. Succeeded detach call on local development server. ``` [19-Feb-2025 08:02:08 UTC] method: post [19-Feb-2025 08:02:08 UTC] absUrl: https://api.stripe.com/v1/payment_methods/pm_1Qu8E2I95G9zjh8ixlYIUuQN/detach...
@helenye-stripe Thank you for your recommendations. Unfortunately, All three solutions was failed. I will investigate some more. especially constructRequest() method of HttpClient/CurlClient.php.
Finally, I found solution. I added some code, then detach method has started to work. **stripe-php/lib/HttpClient/CurlClient.php** ``` public function request($method, $absUrl, $headers, $params, $hasFile, $apiMode = 'v1') { list($opts, $absUrl)...
@prathmesh-stripe Thank you for your advice. I already released my application with modified version of Stripe SDK. I'll try it at next release.