Displaying array variables in a Notification email

  • Profile Image
    kmm005
    Asked on October 02, 2017 at 03:52 PM

    Hi - 

    Trying to send a notification email for a form integrated with Stripe.

    [purchaseamount] => Array ( [0] => ["Description (Amount: 123.00 USD)"] [1] => USD [2] => 123.00 [3] => {"customerID":"XXX","chargeID":"XXX","card":"","plan":"","setupFeeAmount":"","setupFeeDesc":"","apiKey":"XXX","paymentType":"donation","isCharged":"1"} [4] => XXX [5] => textbox_sample2 [6] => textbox_sample3 [7] => john@example.com )

    How can I reference these values in the notification email? I've tried:

    The purchase amount is: {['purchaseamount']['2']}

    The purchase amount is: {['purchaseamount'][2]}

    The purchase amount is: {purchaseamount['2']}

    etc.

    Thanks.


  • Profile Image
    BDAVID
    Answered on October 02, 2017 at 05:34 PM

    Please check this guide if you want to display the payment information in the email notification: https://www.jotform.com/help/231-How-to-Strip-Payment-Labels-and-Separate-Payment-Info-on-Email-Alerts