Implement Yoursafe Direct
Raw skill fileYoursafe Direct is a FlexPay purchase that settles by iDEAL into a Yoursafe Business Account. Use the Yoursafe Direct brand and host. Buyers for this product go to secure.yoursafedirect.com. If this skill and a product page disagree, follow the product page.
Read first
- Yoursafe Direct — purchase, success postback, status, signature
- The FlexPay signature section when you are not using the PHP or Java client
Implement in this order
- Take
shopIDand the signature key from the Yoursafe Direct website in the Control Center. - Build
GET https://secure.yoursafedirect.com/startorderwithversion4,typepurchase, andpaymentMethodIDEAL. - In the client library, select the Yoursafe Direct brand.
- Handle the success postback: verify the signature, store the sale, respond.
- When you need more than the postback, query the status page with
referenceIDorsaleID.
Credentials
- Shop ID and FlexPay signature key for the Yoursafe Direct website.
- Postback URL configured on that website.
Traps
paymentMethodisIDEAL.- The signature matches FlexPay: hex SHA-256, signature key first, then parameters in alphabetical order, UTF-8. Include an optional parameter only when it has a value. Leave
emailout of thestartordersignature. - The success postback is sent for an approved sale. Respond with HTTP 200 and the plain text
OKwithin 30 seconds. - The status call takes one identifier.
referenceIDandsaleIDare alternatives. - Card FlexPay examples that use
secure.verotel.comare a different host. Direct traffic usessecure.yoursafedirect.com.
Done when
The buyer reaches the iDEAL page from secure.yoursafedirect.com, the approved-sale postback verifies, and the handler returns OK.