edalzell / statamic-charge

One-time or subscription billing
13 stars 3 forks source link

Bug: chargeId can't be added to form #80

Closed axelferdinand closed 4 years ago

axelferdinand commented 4 years ago

In the docs... https://github.com/edalzell/statamic-charge/blob/master/docs/one-time/elements.md

...this line creates an undefined error:

// if you want to record the charge id in the order form
          // add it to the form
          var chargeId = result.paymentIntent.charges.data[0].id;

Would be nice to add the transaction ID to the form, but it doesn't work.

edalzell commented 4 years ago

what is undefined?

edalzell commented 4 years ago

Closing due to lack of response, please re-open if it's still an issue.