question

ezpays avatar image
ezpays asked David Marginian commented

no return card type of pay API?

How to get card type at pay API?

{

"authCode" : string ,

"failureMessage" : string ,

"token" : string ,

"result" : (APPROVED|DECLINED) ,

"avsResult" : (SUCCESS|ZIP_CODE_MATCH|ZIP_CODE_MATCH_ADDRESS_NOT_CHECKED| ADDRESS_MATCH|ADDRESS_MATCH_ZIP_NOT_CHECKED|NEITHER_MATCH| SERVICE_FAILURE|SERVICE_UNAVAILABLE|NOT_CHECKED| ZIP_CODE_NOT_MATCHED_ADDRESS_NOT_CHECKED| ADDRESS_NOT_MATCHED_ZIP_CODE_NOT_CHECKED) ,

"paymentId" : string ,

"cvvResult" : (SUCCESS|FAILURE|NOT_PROCESSED|NOT_PRESENT)

}

This is an example of response of pay API.

How can I get card type from pay API?

PaymentsDeveloper Pay API
10 |2000 characters needed characters left characters exceeded

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 answered ezpays commented

What API are you using? I already told you that the Developer Pay API is deprecated and that you need to be using our EComm API - https://docs.clover.com/docs/ecommerce-api-tutorials. Our ecomm API payment responses include a source which should have a brand property.

"source": {
        "id": "{
                 {token}}",
        "brand": "DISCOVER",
        "cvc_check": "pass",
        "exp_month": "07",
        "exp_year": "2023",
        "first6": "redacted",
        "last4": "redacted"
    },


1 comment
10 |2000 characters needed characters left characters exceeded

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

which API is returned these fields?

0 Likes 0 ·
ezpays avatar image
ezpays answered David Marginian commented

Would you send me payment flow of your API?

first calling api to last calling api

1 comment
10 |2000 characters needed characters left characters exceeded

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

Please read through all of our docs, here: https://docs.clover.com/docs/clover-development-basics-ecommerce. See all the subsections and learn a bit about the API.

Generally, the flow will go like this:

1) You will set-up a Clover App (web app) with the correct permissions.

2) You will implement our IFrame which will tokenize the customer's card data: https://docs.clover.com/docs/clover-development-basics-ecommerce#clover-hosted-iframe and https://docs.clover.com/docs/clover-iframe-integrations.

3) You will pass the card token to either our charge or order pay endpoint (if you have created a Clover order) to take payment (https://docs.clover.com/docs/ecommerce-accepting-payments).


0 Likes 0 ·
ezpays avatar image
ezpays answered David Marginian commented

screen-shot-2021-03-09-at-35753-am.png

This is from your clover doc.

Below is showed the result of my postman. Would you please explain why it is different each other? I can't find card token and other params like your clover doc.

screen-shot-2021-03-09-at-35809-am.png


40 comments
10 |2000 characters needed characters left characters exceeded

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

You should not be using the tokens endpoint unless you have an up to date PCI AOC, do you? If not, you need to use the iFrame. Regardless, the id in the response is the "source" token. You would pass that into the charges endpoint to make a payment.

0 Likes 0 ·
ezpays avatar image ezpays David Marginian ♦♦ ·
0 Likes 0 ·

It's not your job to test our API. I am sorry, I really don't understand what you are asking here. For testing, you can use the token you obtained from the tokens endpoint (id in the tokens response). You will pass that token in the body of a charges request:

/v1/charges

{
  "amount":10000,
  "currency":"usd",
  "ecomind":"ecom",
  "capture": true,
  "source":"{
                      {idFromTokensResponseHere}}"
}


0 Likes 0 ·
Show more comments
ezpays avatar image ezpays David Marginian ♦♦ ·

And also how can I use this API at my website?

0 Likes 0 ·

Are you a Clover merchant or are you a 3rd party developer? If you are a developer, do you plan on multiple Clover merchants to bu using your website, or just a single Clover merchant?

0 Likes 0 ·

Welcome to the
Clover Developer Community