# Transfer mode
# Use case
See here.
# Sequence diagram
# Integration
All is driven from Pledg's back office to route the wire transfer, based on merchant's bank account (IBAN).
Settlement process / Monitoring of the operations:
It can be manually done from the dashboard. List of Orders and Transfers are made available. You can manage some Filters, Exports, ... .
It can be automated. Through the sharing of settlement files on a daily basis in an SFTP area, operations can be retrieved, analysed etc... automatically.
# Result
The general principles of the result sent to the merchant frontend are detailed there.
# Standard result
{}
# Former Standard result (now deprecated)
The JSON contains the details of the transfer to be completed.
The structure of the JSON is the following:
{"purchase": {"meta_data": {"departure-date": "2022-03-30"},
"reference": "PLEDG_6500735432411",
"uid": "pur_c9299823-810e-4e8b-a7c3-bde856e6840c"}
}
# Notification
The general principles of the notification sent to the merchant backend are detailed there.
The JSON contains the details of the transfer to be completed.
The structure of the JSON is the following:
{
"reference":"purchase_reference",
"created":"2020-09-17 15:00:02.052177",
"transfer_order_item_uid":"tri_fasdkfiasfsd234nfs7f5d",
"merchant_uid":"mer_e821ccca-7a16-45a7-8b00-0a6015e16123",
"purchase_uid":"pur_6c48d42b-f29b-4f84-bee8-3cb2b964b600",
"amount_cents":10000
}
If there is a secret
in the configuration of the merchant, it is used to sign the notification body with JWT.
{
"signature": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcmVuY2UiOiJwdXJjaGFzZV9yZWZlcmVuY2UiLCJjcmVhdGVkIjoiMjAyMC0wOS0xNyAxNTowMDowMi4wNTIxNzciLCJ0cmFuc2Zlcl9vcmRlcl9pdGVtX3VpZCI6InRyaV9mYXNka2ZpYXNmc2QyMzRuZnM3ZjVkIiwiYW1vdW50X2NlbnRzIjoxMDAwMH0.6ZhlvdcPgjwwBfxCrRpzaBGoRxTCoqtWJzFhB8pw4Ys"
}