question

nick-1 avatar image
nick-1 asked bryanvargas commented

Hosted Checkout - Sandbox - Payment not successful

Hi,

I have created a a Hosted Checkout page from http://nick.lms.cm-hosting.com/bluepay/hpp.php

I can redirect to a URL such as

https://sandbox.dev.clover.com/checkout/8a75dbc5-4445-4f33-a4f1-c1dcff7142b9?mode=checkout

However, when I use an "known" test card, the payment is being rejected. Can anyone suggest other test cards?

https://docs.clover.com/docs/test-card-numbers

Thanks

Nick



1649419089408.png

clover developer community
1649419089408.png (22.0 KiB)
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered

Try using this card for now 5204245250003294 (with any 5 digit zip).

10 |2000

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

nick-1 avatar image
nick-1 answered David Marginian Deactivated commented

Hi David,

Thanks for the answer. I get the same response of "unsuccessful"

1649421519954.png


1649421519954.png (9.0 KiB)
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.

David Marginian avatar image David Marginian ♦♦ commented ·
I just tried it in sandbox, works fine for me. 12/22 is expired, enter a date in the future.
0 Likes 0 ·
nick-1 avatar image
nick-1 answered David Marginian Deactivated commented

Just tried 02/25 and still failure
1649427191436.png


1649427191436.png (9.5 KiB)
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.

David Marginian avatar image David Marginian ♦♦ commented ·
It is working fine for me. This seems silly but can you remove those spaces that you put in the card number?
1 Like 1 ·
nick-1 avatar image
nick-1 answered David Marginian Deactivated commented

Hi David,

I would if I could, but those spaces are being placed by the Clover checkout page

To see what I am seeing, start the process by going to http://nick.lms.cm-hosting.com/bluepay/hpp.php

Thanks

Nick

9 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.

David Marginian avatar image David Marginian ♦♦ commented ·

Can you provide me with the post body of your v1/checkouts call please?

0 Likes 0 ·
nick-1 avatar image nick-1 David Marginian ♦♦ commented ·

POST URL https://sandbox.dev.clover.com/invoicingcheckoutservice/v1/checkouts

Json sent:
{"customer":{"email":"fred@freddo.com","firstName":"Example","lastName":"Customer","phoneNumber":"223-555-0002"},"shoppingCart":{"lineItems":[{"name":"Apple","unitQty":1,"price":100},{"name":"Orange","unitQty":2,"price":75}]}}
Response Array
(
    [href] => https://sandbox.dev.clover.com/checkout/3f95c32a-7b69-4256-9235-78662a7cb91f?mode=checkout
    [checkoutSessionId] => 3f95c32a-7b69-4256-9235-78662a7cb91f
    [expirationTime] => 2022-04-08T15:58:50.816+0000
    [createdTime] => 2022-04-08T15:43:50.844+0000
)


0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ nick-1 commented ·

Same request body works for me. Maybe something wrong with your merchant? What is your merchant id?

0 Likes 0 ·
Show more comments
newwebsite avatar image
newwebsite answered bryanvargas commented

I'm also having this issue. Any workarounds?

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.

bryanvargas avatar image bryanvargas ♦♦ commented ·

I just ran a test using test card 4761530001111126 and did not have issues. Are you working in Sandbox or Production?

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