question

iron-bird avatar image
iron-bird asked gonogo-dev commented

Clover gift cards - testing gift card numbers

https://docs.clover.com/docs/test-card-numbers - this page contains debit/credit cards to test payments, where can I found such testing data for gift cards?

Paymentsecommerce
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image
bryanvargas answered

We do not have test gift cards available in docs.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gonogo-dev avatar image
gonogo-dev answered

We're also trying to utilize the new gift cards API with no luck. We're following the docs:

https://docs.clover.com/docs/create-a-gift-card-token

using a gift card we purchased through one of our merchants with value loaded on it with the below body (we used a real gift card number but didn't want to share it explicitly here):

{
    "gift_card": {
        "card_number": "XXXXXXXXXXXXXXXX"
    }
}

and we're getting the following response:

{
    "message": "400 Bad Request",
    "error": {
        "type": "invalid_request_error",
        "code": "invalid_request",
        "message": "Please provide a valid gift card number"
    }
}

Any thoughts on how to get this to work?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image
bryanvargas answered datasprings commented

Are you using a valid API Key in your request?

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gonogo-dev avatar image gonogo-dev commented ·

We are using the same API key we've used for all of the other API's. Is there another API key we need to get for gift cards?

1 Like 1 ·
datasprings avatar image datasprings gonogo-dev commented ·
Did you ever get this to work? Your same API credentials with gift cards API?
0 Likes 0 ·
datasprings avatar image
datasprings answered gonogo-dev commented

This sounds very similar with what we are trying to do... Just to confirm, the new gift card restful API should work to check balance or redeem cards? Did you ever find a solution?

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gonogo-dev avatar image gonogo-dev commented ·

We did not as we never got an answer from Clover

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community