CRM Integration
If the shopper cannot access to your checkout process, for instance the merchant is a call center using a CRM or a physical store with its POS software, you can send the form directly to the shopper.
This section describes how to send the form URL to the shopper in order to render the purchase. Just issue a POST to the form_deliveries resource of the order uuid. This call requires the parameters:
channel: To select how to send the form URL, currently only sms.
product_code: Which selects the financing product to sell (For instance, pp3 = part payment)
campaign: When offering a PP5 the name of the campaign must be specified.
$ SQPASS='yourAccountKey:yourAccountSecret'
$ curl -i -X POST -u $SQPASS -k \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \ --data-binary '{ "channel": "sms", "product_code": "pp3" }' \
https://sandbox.sequrapi.com/orders/1dc26b35-06f6-41d6-b6f5-d0eb6c66aad1/form_deliveries
If everything went all right, you will get an HTTP Success code 204 (No Content):
HTTP/1.1 204 No Content
Server: nginx/1.2.1
Date: Thu, 20 Nov 2014 17:05:04 GMT
Connection: keep-alive
Status: 204 No Content
Otherwise a 4xx status code will be returned.
Testing the SMS link from outside of Spain
SeQura only deliveries the SMS to spanish mobile phone numbers. If you are developing the integration from any other country and you don’t have a valid spanish SIM, you can easily build the link that would be added in the SMS.
https://sandbox.sequrapi.com/orders/1dc26b35-06f6-41d6-b6f5-d0eb6c66aad1/pumbaa_form?product=pp3
Please, don’t do this in production, the identification has to be delivered to the shopper’s mobile phone, in other case the credit will be rejected.
Updated 5 days ago