question

kirank avatar image
kirank asked David Marginian Deactivated commented

E-Commerce API : Charge with Capture not capturing

We are doing this on CloverAPI testing Sandbox to eliminate our app as source of bugs.

Our intent to to create a charge that is a SALE. So during Create Charge call, we set capture=true.

The return value of create charge shows captured=true. But Get a charge does not show captured = true.

Can you please advice if this is a bug.

Create Charge:
{
"amount": 5100,
"currency": "usd",
"capture": true,
"externalReferenceId": "PR0077000431",
"description": "ssgha",
"source": "clv_1TSTSJRmPH3Eex87BU38gBYK"
}
Response:
{
"id":"NJDEDWW9600Y2"
"amount":5100
"amount_refunded":0
"currency":"usd"
"created":1585169694308
"description":"ssgha"
"captured":true
"outcome":{
"network_status":"approved_by_network"
"type":"authorized"
}
"paid":true
"status":"succeeded"
"source":{
"id":"clv_1TSTSJRmPH3Eex87BU38gBYK"
"brand":"DISCOVER"
"cvc_check":"pass"
"exp_month":"12"
"exp_year":"2031"
"last4":"6668"
}
}
Get Charge:
https://scl-sandbox.dev.clover.com/v1/charges/NJDEDWW9600Y2

{
"id":"NJDEDWW9600Y2"
"amount":5100
"currency":"usd"
"created":1585169796834
"description":"ssgha"
"captured":false
"order":"R0MGC0T46ASRC"
"outcome":{
"network_status":"approved_by_network"
"risk_level":"normal"
"risk_score":10
"type":"authorized"
}
"paid":true
"status":"succeeded"
"source":{
"id":"clv_1TSTSJRmPH3Eex87BU38gBYK"
"brand":"DISCOVER"
"last4":"6668"
}
}

In Sandbox Merchant Dashboard:

PAYMENT DETAILS
Payment ID: NJDEDWW9600Y2
Invoice Number: PR0077000431
Created: 25-Mar-2020 1:54 pm
Tender: Credit Card
Note: ssgha

TOTAL
Payment Amount: $51.00
Tax Amount: $0.00

CARD TRANSACTION INFORMATION
Card Details: DISCOVER - 6668
Card Entry Method: KEYED
Card Transaction Type: AUTH
Card Transaction State: CLOSED
MID: RCTST0000008099
AUTH: OK0026
REF: 008500500190
CVM: 




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.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

We don't currently support immediate capture. The charge will be captured when you run closeout.

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

kirank avatar image kirank commented ·

What does it mean when API returns captured = true at create charge?

Perhaps a clarification in Docs would be good for consistency.

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

It means that the capture flag has been set. That means that the charge will be automatically captured at closeout.

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

To summarize,

capture = false means its a manual capture. The authorization will not be settled until a capture api is called by our application.

capture = true means its an auto capture. The authorization will be settled as part of the current batch.

Is this correct?

0 Likes 0 ·
Show more comments

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