Hi Guys,
I Successfully Placing order on Sanbox with CASH and tender as cash. Thanks to developers who Helped me with the Suggestion when i Stuck up .
Now i started working with Credit card part . Actually I am a newcomer to this topic @ Clover . Previously we used Stripe.
The Flow I Understood on Clover :
Create Order
Create Line Items
Create Discount of Order
Create Payment with tender and Line Items Tax-Amount
Update the Order with payments discount etc and Lock it
As per the above flow Cash is Straight forward thing . But For Credit card i understood was
Create order
............
Create payment with tender as Credit Card
create an authorization
Here while iam trying to create an authorization it is not accepting the Payment created prior of authorization. Leading to Error :-
Payload :-
{
"authcode": "FDHDFGDFG",
"last4": 1111,
"note": "NONE",
"amount": 2100,
"cardType": "VISA",
"payment": {
"id": "VH4KBKEDJ27YG"
},
"type":"AUTH"
}
Error :-
{
"message": "Invalid payment."
}
So can any one help me with exact Flow of clover to Place successful order with Credit card transaction
Thanks, Prasad