Skip to content
Docs
Get RestroPress

RestroPress Skrill Payment Gateway

Updated 2 min read
On this page

This plugin registers a gateway called Skrill in RestroPress. At checkout it redirects the customer to Skrill's payment page with the amount and order details in the address, and when the customer comes back it marks the order paid or failed based on the status value in the returning URL. It is a small early-stage plugin (version 1.0.0, about 260 lines of code) and should be treated as a starting point, not a finished integration.

Requirements#

  • RestroPress (the plugin does not check for it explicitly; it relies on RestroPress functions being present).
  • A Skrill merchant account.

Installation#

Install the ZIP from Plugins › Add New › Upload Plugin and activate it. Then open RestroPress › Settings › Payment Gateways, tick Skrill in the gateway list and save. The settings are in the Skrill section of the same screen.

The plugin has no licence field, so there is no licence key to enter and no update checker in its code.

Settings#

Skrill settings section
SettingWhat it doesDefault
Merchant IDSent to Skrill as pay_to_email. Despite the label, it has to be the email address of your Skrill merchant account for Skrill to accept it.empty
API UsernameRequired to be non-empty but not used anywhere else in the code.empty
API PasswordRequired to be non-empty but not used anywhere else in the code. Plain text field.empty
Test ModeSwitches the address the customer is sent to (see below).Off

How it works#

  1. The customer chooses Skrill at checkout. If any of the three text settings is empty, checkout shows "Skrill configuration is incomplete."
  2. The plugin creates the order with status pending and redirects the customer to https://www.skrill.com/app/pay.pl (or https://pay.skrill.com when Test Mode is on) with pay_to_email, transaction_id (the order ID), amount, currency, return_url, status_url (the same ?rpress-listener=skrill address on your site), cancel_url (the checkout page) and a description.
  3. When the customer lands back on ?rpress-listener=skrill, the plugin loads the order named by transaction_id. If the status parameter is 2 it sets the order to publish, empties the cart and redirects to the success page. Any other value marks the order failed.

This early version does not yet confirm payments with the provider, so do not use it for live payments. It does not support refunds and does not verify Skrill's server-to-server status notification.

Troubleshooting#

  • "Skrill configuration is incomplete." Merchant ID, API Username or API Password is empty.
  • "Invalid response from Skrill" / "Payment not found". The return request had no transaction_id, or no order with that ID exists.
  • "Payment failed." The returning status was not 2, including when the customer cancelled.
Was this page helpful?