Bug Report #1650026720121

OS info

  • Operating System : Mac OSX 21.1.0
  • Wappler Version : 4.8.0

Problem description

… When you try to retrieve Stripe Payment Method and detach payment method from the server side.
On the Test mode: Wappler successfully retrieve the payment method information - also successfully detach the payment method.
On the Live mode: error display is as follow: Options found in $params: api_key. Options should be passed in their own array after $params.
Note: The live key is successful working when it comes to updates customer info. However, it failed to finish the script when it reached retrieve payment method.

The issue occurs when you replace the test key with live key.

Steps to reproduce

report1650026719746.zip (280.6 KB)

I hope this will help you fix or figure out the bug, but I thought it will be worth telling you.

I tried the api action property instead of Stripe module to check the problem.
When I tried to detach the payment method using Stripe module - It was showing Options found in $params: api_key. Options should be passed in their own array after $params.

So, I changed to the regular api to do my work: However, It was giving me almost the same error: "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See Stripe API Reference for details, or we can help at Stripe: Help & Support",

  •    "type": "invalid_request_error"*
    

So, the solution was to add at the:

header -> Authorization -> bearer sk_live************

You don't need to put the key in the separate column of the header to add the secret key. You only have to use Authorization column and add bearer sk_live***********

I am not an expert in Wappler but I hope it will help you guys on someone.