Payments API error

Hello,

I'm getting the following error in my code and in the Payments SKY API (https://developer.sky.blackbaud.com/docs/services/payments/operations/CreateCheckoutTransaction/console)

message: 'Transaction is required.',
error_name: 'ChargeTransactionNullArgument',
error_code: 14,
raw_message: 'Transaction is required.'

What is this Transaction and how do I pass it to my request?

Thank you!

Comments

  • Mina Mistry
    Mina Mistry Blackbaud Employee
    Seventh Anniversary Kudos 2 Name Dropper Participant

    Hi @Mario Almeida

    The Charge transaction endpoint is used after a transaction has been authorized and you are ready to finalize (capture) the payment.

    Here is a video that walks through step by step how to process a transaction using Blackbaud Checkout in your application, including how the endpoint you reference above is used.

  • Hello @Mina Mistry

    I've watched the video and followed the step by step guide, but I'm still having this error when testing in the endpoint:

    And inside my code.

  • Hello @Mina Mistry,

    Now it's working fine! There is just one problem with the request response where the token always return 00000000-0000-0000-0000-000000000000, like shown below. I need the token to make the transaction recurring.

    "id": "94042dd3-1aaa-451b-b37b-a5ae052055e1",
    "is_live": false,
    "phone_number": "",
    "state": "Processed",
    "token": "00000000-0000-0000-0000-000000000000",
    "transaction_date": "3/15/2023 2:42:34 PM",
    "transaction_type": "CardNotPresent",
    "authorization_code": "123456"

    How do I fix this? Thank you!

  • Mina Mistry
    Mina Mistry Blackbaud Employee
    Seventh Anniversary Kudos 2 Name Dropper Participant

    That's great.

    The optional card_token input parameter should be used (i.e. pass in your own GUID) and Checkout will assign the payment method to that token value.

    9bed1ce78c1eb9349eac40f89bf3337a-huge-im


  • Hello @Mina Mistry !

    I did that and now all is well. I'm ready to go to the next step, that is recurring gifts. Thank you very much for your valuable help!

Categories