Why is the Payment Field output value for Creating a Stripe Subscription within an Action Form either a String or an Object

Hi everyone,

I am just hoping to get some information on why creating a Stripe Subscription within a Payment Field in an Action Form is able to return either a String or and Object.

  • When we add the subscription to the user account in the Ending Screen component ‘After Submission Flow’ it returns an Object,
  • Whereas when consumed within a component Flow following the Payment Field using the same Flow, it returns a string.

In our case, we require the Payment Field to return an Object and the Docs don’t seem to indicate the reason for one or the other.

Any help would be greatly appreciated!

Hi @SeanStof

Welcome to the Auth0 community!

Please allow me some time to research this and I will be back with more information as soon as possible.

Best regards,
Gerald

Hi @SeanStof

Returning with some information, it appears the reason we only generate an object after submission is because we process the payment just before completing the form internally, so the data is only available after completion. You can find more details in the following documentation, on the payment field.

Hope this helped!
Gerald