MG - 3.2 - OPERATIONAL PROCEDURES
Order reception
Once the module has been installed, your clients will have the option of using our payment methods.
In the “New orders state” field of the module configuration you can select the status in which new orders will be when received. The state will be “processing”.
If the client does not end the validation process, the status will be “Pending Sequra’s approval”, whilst the state will be “On hold”. These orders have not been approved by Sequra, so you shouldn’t send them. Even so, you will have all the order and buyer info, so you can contact him to solve the problem.
Shipping communication
Sequra needs to know when you ship an order so we can start to manage our operative procedures such as disbursements or sending the buyer the payment instructions. To make this happen, it is necessary that you mark as “Shipped” those orders you shipped to the client.
It is important that you carry this out only when you already shipped the order, and that it reflects any change it could’ve suffered before the shipment, including shipped products, buyer info, addresses, invoicing, etc.
The easiest way of doing this is creating the order shipment in your backoffice: Sells → Orders → Order details → Send:
and then click “Ship the order”:
If Magento’s cron is working, it will send a report every day to Sequra with the orders that have been shipped. If there is any problem, you can force this report to be sent to Sequra: Sells → Orders → click Send report to Sequra.
Communicate shipment through third parties tools
If you have integrated Magento with an ERP or a third party management tool that manages the shipments instead of the backoffice, Magento offers an API REST and access via Soap XML-RPC, which can be used to create the shipments in Magento automatically.
Next, an example to show how you could mark an order as payed using Soap XML-RPC:
Create access credentials for the app
Go to System → Web services → SOAP/XML-RPC functions and click “Add new paper”
Go to Function information → Function resources and give, at least, permissions for Sells → Order → Order shipments → Create and click “Save function”.
Go to System → Web services → SOAP/XML-RPC Users and click “Add new user”.
select the function previously created in User info → User profession, and click “Save user”.
Using the sales_order_shipment.create function to create the shipment. The PHP example code is simple but enough to communicate the shipment to Sequra:
<?php
$orderIncrementId = ‘100000003’;
$client = new SoapClient('http://tienda.com/magento/api/v2_soap/?wsdl');
$sessionId = $client->login('TestSeQura', 'soapass');
$client->salesOrderShipmentCreate($sessionId,$orderIncrementId,array(),'Shipment Created', true, true);
These 4 code lines should be sufficient. Indicate the order reference in the first line, the domain and Magento route + ‘/api/v2_soap/?wsdl’ on the second line, and the user and password you created on the third line.