I am wokring with ‘Stripe Orders’, which is in beta.
I need to do the following:
"please select a beta version by setting the Stripe-Version HTTP header to something like 2020-08-27;orders_beta=v4"
In their example code it looks like this, in client side js:
// This is your test publishable API key.
const stripe = Stripe("pk_test_51It********", {
betas: ["process_order_beta_1"],
apiVersion: "2020-08-27; orders_beta=v4"
});
Really wishing for easier ways to extend wappler components (both server and client side).
I’ve got it working by creating a custom component and changing the lib/modules/stripe.js, which the assets updater tries to undo every time I launch wappler
For your entertainment:
Created /public/js/wappler-extensions/dmx-kars-stripe.js
On page I included it in the layout, and then created this componentit with:
If you follow the instructions here, you can install extensions and formatters without them being overwritten (in the extensions/server_connect/modules folder)
Yeah I’d like to go that route but it’s a bunch of extra work to make a .hjson file from this.
There’s no easy way to copy paste (that I’m aware of) an existing server action.
So I first need to spend hours reverse engineering a .hjson file.