Hello, I am simply trying to call up my list of my transactions or my charges present on Stripe. I call via the API https://api.stripe.com/v1/charges
However when I want to display my table, the return does not seem to be in the correct format,
{“code”:0,“file”:"/var/www/vhosts/paritys.com/subdomains/stripe/dmxConnectLib/stripe/lib/BaseStripeClient.php",“line “:55,“message”:”$config must be a string or an array”,“trace”:"#0 /var/www/vhosts/paritys.com/subdomains/stripe/dmxConnectLib /modules/stripe.php(14): Stripe\BaseStripeClient->__construct()\n#1 /var/www/vhosts/paritys.com/subdomains/stripe/dmxConnectLib/ lib/App.php(190): modules\stripe->__construct()\n#2 /var/www/vhosts/paritys.com/subdomains/stripe/dmxConnectLib/lib\ /App.php(137): lib\App->execSteps()\n#3 /var/www/vhosts/paritys.com/subdomains/stripe/dmxConnectLib/lib/App .php(102): lib\App->exec()\n#4 /var/www/vhosts/paritys.com/subdomains/stripe/dmxConnect/api/List_Transactions.php (8): lib\App->define()\n#5 {main}"}
If you’re using a POST action and not sending any values, as I suspect is the case for this Stripe API call, then Wappler has a bug and is throwing that exception.
I personally got fed up with issues and inconsistencies in the Wappler Stripe API when it was released . It’s actually became easier and more Intuitive to use stripe directly.
The Wappler wrapper is simply a further layer of abstraction that adds no real value to me.
Regardless, it’s a choice people can make but the bug in the Wappler API when using a POST request with no values remains his issue I suspect. Irrespective
The Wappler stripe integration is a direct import of the official Stripe API with all the meta data and output data defined. There are no inconsistencies or translation layers it is one to one match.
But of course you are free to do everything manually and write all the required code and parameters yourself. You will have to populate all the data of each call which is not always the correct data when you execute a test api, while all data is nicely predefined when using the Wappler integration.