We're using Checkout to process both Credit Card and Direct Debit transactions, and then we're using the transaction token to create a corresponding Gift record in Raiser's Edge NXT. This is working correctly for one-time transactions and for recurring Direct Debit transactions, but for recurring Credit Card gifts we seem to be having issues with correctly storing a card token so that future payments can be processed.
I'm inclusing our front end, JS (Vue/Nuxt) code that loads the Checkout modal and submits information back to our PHP (Laravel) API for additional processing (first for finishing the Checkout transaction and then for creating Gift records)—I'm including that code as well.
Can you see what we're doing wrong when creating recurring Gift records? Thank you!
JS + PHP Code: code.txt