Disregard...Stripe Create Setup Intent does not handle the absence of a customer properly

Wappler Version : 5.6.1
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

When using the Stripe Create Setup Intent action, the Customer attribute should not be sent in the request if there is no customer provided.

Actual behavior

The Customer attribute is sent, with an empty value, which produces this error from Stripe:

{"status":"500","code":"parameter_invalid_empty","message":"You passed an empty string for 'customer'. We assume empty values are an attempt to unset a parameter; however 'customer' cannot be unset. You should remove 'customer' from your request or supply a non-empty value.","stack":"Error: You passed an empty string for 'customer'. We assume empty values are an attempt to unset a parameter; however 'customer' cannot be unset. You should remove 'customer' from your request or supply a non-empty value.\n    at Function.generate (/opt/node_app/node_modules/stripe/lib/Error.js:40:16)\n    at res.toJSON.then.StripeAPIError.message (/opt/node_app/node_modules/stripe/lib/StripeResource.js:238:35)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)"}

How to reproduce

Setup a proper Create Setup Intent flow, but do not set the customer:

Trigger the api as usual:

<dmx-stripe id="stripe1" key="" dmx-bind:key="current_tenant.data.app_settings.where(`key`, 'stripe_publishable_key', '==')[0].value" checkout="server" setup-url="/api/1/4/stripe/setup_intent_no_account"></dmx-stripe>


<button id="btn1" class="btn btn-block btn-primary" dmx-on:click="stripe1.createSetup()">Get started</button>

Not a bug…invalid test.