question

rahulrao avatar image
rahulrao asked Rob McGarry commented

Need production api call

REST API
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 David Marginian Deactivated edited
10 |2000

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

rahulrao avatar image
rahulrao answered David Marginian Deactivated commented

I found almost all base url but only one is remaining
https://apisandbox.dev.clover.com

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 ·
0 Likes 0 ·
rahulrao avatar image
rahulrao answered rahulrao commented
5 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 ·

Sorry, unless you provide us with some details we can't help you. Is your app approved?

0 Likes 0 ·
rahulrao avatar image rahulrao David Marginian ♦♦ commented ·
Yes, It's Approved
0 Likes 0 ·
David Marginian avatar image
David Marginian Deactivated answered rahulrao commented

What is your app ID and what does doesn't work mean?

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.

rahulrao avatar image rahulrao commented ·

APP ID : DZ9MQV7ZC56ST

0 Likes 0 ·
Rob McGarry avatar image
Rob McGarry answered David Marginian Deactivated commented

Our APP ID is

DZ9MQV7ZC56ST


I will let Rahul answer the "doesn't work" question

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

rahulrao avatar image rahulrao commented ·

When we change base url [Sandbox => Production], Sandbox Url open clover page but when i call Production url it's not working [Clover Page not open]
Sandbox Url [Working]: https://sandbox.dev.clover.com/oauth/authorize?client_id=DZ9MQV7ZC56ST&redirect_uri=https://warriorsms.com/studioadmin/business-profile-update


Production Url [Not Working]: https://api.clover.com/oauth/authorize?client_id=DZ9MQV7ZC56ST&redirect_uri=https://warriorsms.com/studioadmin/business-profile-update

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ rahulrao commented ·

I think you want https://www.clover.com/oauth/authorize.......

1 Like 1 ·
rahulrao avatar image rahulrao David Marginian ♦♦ commented ·

Ok, I try.

0 Likes 0 ·
Show more comments
rahulrao avatar image rahulrao rahulrao commented ·

Ref: https://docs.clover.com/reference#api-reference-overview

SandBox url:

  • Platform API: https://sandbox.dev.clover.com
  • Tokenization service API: https://token-sandbox.dev.clover.com
  • Ecommerce service API: https://scl-sandbox.dev.clover.com
    SandBox url:

  • Platform API (US & Canada): https://api.clover.com
  • Platform API (EU): https://api.eu.clover.com
  • Tokenization service API: https://token.clover.com
  • Ecommerce service API: https://scl.clover.com
0 Likes 0 ·
Rob McGarry avatar image
Rob McGarry answered David Marginian Deactivated edited

Hi David, I will assume that Rahul would say we are not getting the ability to get the OAuth token back from call and that URL's getting some type of error. Since he is in India, he won't be able to confirm for sure until Monday at the latest.

By viewing the APP and URLs we have used, are you able to determine if we are making any mistakes with the URL rules?

Thanks


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 has something to do with the merchant account. Have you tried logging into the merchant account that you are trying to install the app on? I did, and I cannot, the dashboard doesn't load. As I suggested, I would try using a different test merchant, that is the quickest path to resolution here (and something you can do right now, without your developer). I see that there are 3 merchant accounts that it appears you created (have Warrior SMS in the name).

0 Likes 0 ·
Rob McGarry avatar image
Rob McGarry answered

Hi David,

we will try a different account. I am the owner the of the Warrior SMS account and can log in. So we will try that and if we are still struggling to get it to work, we will let you know what we found.

thanks


10 |2000

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

rahulrao avatar image
rahulrao answered David Marginian Deactivated edited

Hi David,

Yesterday client purchase one product on the web portal but he facing some issues.
Client Comment: I did yesterday didn’t get approved by Clover
But clover returned a success message
Clover Response:
{
"id": "Q0....TP",
"amount_refunded": 0,
"currency": "USD",
"created": 1628540987471,
"captured": true,
"ref_num": "XXXXX",
"auth_code": "XXXX",
"outcome": {
"network_status": "approved_by_network",
"type": "authorized"
},
"paid": true,
"status": "succeeded",
"source": {
"id": "XXXX",
"brand": "VISA",
"exp_month": "XX",
"exp_year": "XXXX",
"first6": "XXXXX",
"last4": "XXXX"
}
}

3 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 ·

I don't understand what this means, you can't receive a successful response for a payment that was not approved.

0 Likes 0 ·
rahulrao avatar image rahulrao David Marginian ♦♦ commented ·

How to check payment is approved or not by clover?

On current response clover return "status": "succeeded"

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ rahulrao commented ·

Q0....0TP was a successful payment for .01 cents, the response is accurate.

1 Like 1 ·
rahulrao avatar image
rahulrao answered David Marginian Deactivated commented

The client completes the payment process on our portal and clover returned success response but the amount was not deducted from their cards


Clover response:

{
"id": "7787FM5YEZ8KG",
"amount_refunded": 0,
"currency": "CAD",
"created": 1628690269811,
"captured": true,
"ref_num": "XXXX",
"auth_code": "XXXX",
"outcome": {
"network_status": "approved_by_network",
"type": "authorized"
},
"paid": true,
"status": "succeeded",
"source": {}
}

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 ·

If you are getting a successful response the payment was successful and the money will be debited from the customer's account (assuming your merchant account is not a test account and is hitting a real gateway). Are you expecting an immediate debit against the account?

0 Likes 0 ·
rahulrao avatar image rahulrao commented ·

Hi David,

Clover returned an alphanumeric id but client mid is numeric.


I'm using below mention API base URL for the production

1. Base URL: https://api.clover.com
2. Card base URL: https://api.clover.com/v3
3. Token generate: https://token.clover.com/v1/tokens
4. OAuth: https://www.clover.com/oauth/authorize
5. Generate PAKMS key: https://api.clover.com/pakms/apikey
6. OAuth Token: https://api.clover.com/oauth/token
7. Create Customer profile: https://scl.clover.com/v1


Please correct this URL if anyone is wrong




0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ rahulrao commented ·
Clover uuids are alphanumeric. I am sorry, I just really don't understand what your question is. If you are getting a successful response the payment was successful.
0 Likes 0 ·
rahulrao avatar image rahulrao David Marginian ♦♦ commented ·

clover.png

Client Canadian production MID is 3180003XXXXX

my concern regarding mid, client providing me numeric mid but when I call https://www.clover.com/oauth/authorize?client_id={appid} then he shows me mid-list but they are alphanumeric

0 Likes 0 ·
clover.png (94.9 KiB)
Show more comments
Rob McGarry avatar image
Rob McGarry answered David Marginian Deactivated edited

@davidmarginian My expectation is that doing a purchase transaction would ping my bank and I would see a pending transaction listed. This occurs with all other transactions I have on my credit card.

I noticed that in the response from clover there is a reference to amount_refund On the second or third line. Is that Correct or is our call somehow generating a refund?


,

Hi @David Marginian, my expectation is that the purchase transaction would ping my bank (Canadian Imperial Bank of Commerce Visa credit card) to do a check, which would generate a pending transaction. I can see all other pending transactions before they’re settled with my bank immediately.
I’m also curious about the response from clover which has amount_refund and the second line as a response. I’m curious why the response would have “refund” in a purchase request.

Thanks

Rob

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 ·

The refund amount has nothing to do with this. What is the timeframe of your expectation? Immediate? Next day? Do you usually make .01 charges? For all we know the bank saw that .01 charge and marked it as suspicious. All I can tell you is that the payment was successful on our end (the gateway authorized it). When your bank posts it is not up to us, and we can't help you with that. You can do some web searches to see that things generally don't post immediately, you may also contact your bank. But, making a payment and expecting it to immediately post is not realistic, so, considering you just made the payment today I would wait awhile and see when it posts. If it doesn't post you can talk to your bank.

0 Likes 0 ·

Welcome to the
Clover Developer Community