Second DMS step

Second DMS step
Second DMS step – payment approval or rejection request description and example
  • After DMS payment registration invoice status will be "WAITING_FOR_APPROVAL". To finish financial transaction second request must be done using only one field.
  • Method: POST , URL: /invoice/dms_accept/{invoice_ref}
Field Usage Description
amount Confirmed amount. Decimal point – “.” Two decimal digits available (example: 200.00). (amount value > 0)
confirmed M
Possible values: true or false:
true – payment must be finished (financial transaction sent)
false – payment is terminated (funds will be returned to customer's account)
  • Fields for signature calculation: <invoice_ref><confirmed><X-Shop-Name><X-Nonce><ShopPassword>
Request example:
 {
  "amount": 9.99,
  "confirmed": "true"
 }
			    
Second DMS step – payment approval or rejection response description and example
The response is similar to SMS invoice response:
 {
  "type": "InvoiceDto",
  "invoice_ref": "BKIuIJBsYpwB4x0eCc9t9oglc",
  "amount": 9.99,
  "currency": "USD",
  "created_date": "2017-07-13T13:53:22.448Z",
  "updated_date": "2017-07-13T13:54:09.300Z",
  "due_date": "2017-07-13T18:53:22.803Z",
  "shop_code": "TEST",
  "invoice_status": "SUCCEEDED",
  "payment_id": "20823021",
  "target_payment_id": null,
  "order_id": "order-27",
  "error_code": null,
  "error_message": null,
  "payment_method": "FD_DMS",
  "merchant_name_a": null,
  "merchant_name_b": null,
  "customer": { },
  "products": [ ],
  "details": {}
 }