Stripe confirm intent does not include secret

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:

Screen Shot 2021-09-16 at 8.47.19 AM

How to reproduce

Add and configure a stripe component

<dmx-stripe id="stripe1" key="" dmx-bind:line-items="`price`, selected_price.value, '==')" checkout="server" session-url="/api/subscriptions/checkout" dmx-bind:key="`key`, 'stripe_publishable_key', '==')[0].value" dmx-on:error="alert_header.setType('danger');alert_header.setTextContent(lasterror);;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

Screen Shot 2021-09-16 at 8.52.32 AM

But the confirm still generates an error.

Note, that passing the secret as @patrick describes is a viable workaround:

Did you use the Create Setup Intent Template? The server action should have a Set Value step for the client_secret.


Thanks Patrick, obviously that was the problem.