Add Order Payment Transaction with Rest API
Posted: Mon Nov 10, 2014 9:21 am
Hi,
I have followed the tutorials on creating a payment module and referred the NullPayment Implementation in demo site in order to create a payment module using paypal java rest sdk. We Only use the Rest API so need to add payment and related info through Rest endpoints.
I use add Payment with following structure.
{
"id":"",
"orderId":"6800",
"type":"CREDIT_CARD",
"billingAddress":{},
"amount":"",
"referenceNumber":"",
"gatewayType":"PAY_PAL_GATEWAY"
}
But how will transactions get added to payments added like this? Is it through a workflow or should I manually add the logic for it ? Currently when i try to checkout it gives a Not Enough Payment and fails.
I have followed the tutorials on creating a payment module and referred the NullPayment Implementation in demo site in order to create a payment module using paypal java rest sdk. We Only use the Rest API so need to add payment and related info through Rest endpoints.
I use add Payment with following structure.
{
"id":"",
"orderId":"6800",
"type":"CREDIT_CARD",
"billingAddress":{},
"amount":"",
"referenceNumber":"",
"gatewayType":"PAY_PAL_GATEWAY"
}
But how will transactions get added to payments added like this? Is it through a workflow or should I manually add the logic for it ? Currently when i try to checkout it gives a Not Enough Payment and fails.