Payments API sample code

Hello,


I tried to find a sample code for the Payments API, but there is only one, in C#. Is there any sample code in NodeJS? If so, where to find it? Thank you!


 

Comments

  • Mina Mistry
    Mina Mistry Blackbaud Employee
    Seventh Anniversary Kudos 2 Name Dropper Participant
    Hi Mario - we do not have any NodeJS code samples at this time. Let us know if you have any questions on how to get started with your integration.


    Thank you.
  • Thank you. I'm working on it and if I have any questions I'll post here.
  • Hello Mina,


    I've created the testing account to use the credit card number 4111 1111 1111 1111, but I can't complete the checkout. I'm getting this error message:

    High risk of fraud determined for this transaction.


    Even if I use real credit card I'm getting Transaction declined.


    Any Ideas how to solve this issue?


    Thank you!
  • @Mina Mistry
    Hello Mina! How do I obtain the Sky API subscription key to use when making Payments API requests?

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

    @Mario Almeida
    You can find detailed instructions in think Getting Started guide (see Step 2).

    Thanks!

  • @Mina Mistry
    Hello Mina! Thanks for your answer. Now I can run the application, but I'm getting these two errors for the checkout. I'm getting the Public key from Payments API from My Subscriptions option in my developer account.

    Public key request error

    The attempt to retrieve the public key from Payments API did not succeed and has produced an unexpected error.

    Payment configurations request error

    The attempt to retrieve payment configurations from Payments API did not succeed and has produced an unexpected error.

  • @Mina Mistry

    Hello Mina! Now I'm getting this error:

    Payment configurations not valid ('Live' process mode)

    All payment configurations returned from Payments API are currently marked with a 'Live' process mode. For the purposes of this sample application you may not use payment configurations that are currently marked with a 'Live' process mode.