Properly storing card tokens for recurring gifts

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

Comments

  • Erik Leaver
    Erik Leaver Blackbaud Employee
    Tenth Anniversary Kudos 5 First Reply Name Dropper

    @Emily MerricksCan you share the error message are you receiving?

  • @Erik Leaver we saw two: “The CardToken specified no longer exists” and “Invalid account number.”

  • Anthony Gallo
    Anthony Gallo Blackbaud Employee
    Tenth Anniversary Kudos 5 First Reply Name Dropper

    @Emily Merricks Hi there. I was reading thru this and looked up some older posts that deal with the same topic. I think one of them is an older post from you that you may have gotten past but the other is more about the full RG process.

    Link 1

    Link 2

    For the most part if that account_token is created using the payments API that is all we really need for credit cards and it should work the same for direct debits.

Categories