Wappler Version : 4.0.4
Operating System : mac
Server Model: node
Database Type:
Hosting Type:
Expected behavior
When confirming a setup intent, the client secret from the stripe component should be available
Actual behavior
The following error is generated:
How to reproduce
Add and configure a stripe component
<dmx-stripe id="stripe1" key="" dmx-bind:line-items="subscription_list.data.where(`price`, selected_price.value, '==')" checkout="server" session-url="/api/subscriptions/checkout" dmx-bind:key="current_tenant.data.app_settings.where(`key`, 'stripe_publishable_key', '==')[0].value" dmx-on:error="alert_header.setType('danger');alert_header.setTextContent(lasterror);alert_header.show();scheduler_alert.start()" setup-url="/api/subscriptions/setup_intent"></dmx-stripe>
Add a stripe card component
<dmx-stripe-card id="stripe-card2"></dmx-stripe-card>
Trigger the create setup intent (shown here on modal open
<div class="modal" id="modal_stripe_card" is="dmx-bs4-modal" tabindex="-1" role="dialog" dmx-on:shown-bs-modal="stripe1.createSetup()"></div>
And trigger the confirm setup
<button type="button" class="btn btn-primary" dmx-on:click="stripecard2.confirmSetup()">Save changes</button>
The setup intent is properly returned
But the confirm still generates an error.
Note, that passing the secret as @patrick describes is a viable workaround:
Community Page
Last updated:
Last updated: