Payson is a gateway plugin that extends WooCommerce, allowing you to take payments via Payson. Payson cooperates with Visa, MasterCard and the Swedish online banks Swedbank, Handelsbanken, SEB and Nordea.
General information
↑ Back to topPayson Direct
↑ Back to topPayson Invoice
↑ Back to topInstallation
↑ Back to top
- Purchase and download the plugin zip file from WooCommerce.com
- Login to your WordPress Admin. Click on Plugins | Add New from the left hand menu
- Click on the “Upload” option, then click “Browse” to select the zip file from your computer. Once selected, press “OK” and press the “Install Now” button.
- Activate the plugin.
Configuration: Payson Direct
↑ Back to top- To configure the plugin, click on WooCommerce | Settings from the left hand menu, then the top tab “Payment Gateways”. You should see “Payson Direct” as an option in the list.
- Optionally you can select the radio button next to this option to make it the default gateway.
- You should see “Payson Direct” displayed across the top of the page as a link also. Click on this to configure the plugin, and you will see a list of options:
- Enable/Disable checkbox for this gateway.
- The “Title” option allows you to determine what your customers will see this payment option described as on the checkout page.
- The “Description” box controls the message that appears under the payment fields on the checkout page.
- Payson email address – the email address tied to your Payson account.
- Agent ID – Requested from Payson (Login to your Payson account and navigate to –> My account –> Integration to retrieve your AgentID).
- MD5 – Requested from Payson (Login to your Payson account and navigate to –> My account –> Integration to retrieve your MD5-key).
- Payson Guarantee – Whether Payson Guarantee is offered or not. More information about Payson Guarantee can be found here.
- Language – Set the language in which the page will be opened when the customer is redirected to Payson.
- Debug – If this option is checked then details of communication with Payson are stored in a debug log at location /wp-content/plugins/woocommerce/logs/payson.txt.
- Press Save changes to save your changes.
Configuration: Payson Invoice
↑ Back to top- Navigate to –> WooCommerce –> Settings from the left hand menu, then choose the top tab “Payment Gateways”.
- You should see “Payson Invoice” displayed across the top of the page as a link also. Click on this to configure the plugin, and you will see a list of options:
- Enable/Disable checkbox for this gateway.
- The “Title” option allows you to determine what your customers will see this payment option described as on the checkout page.
- The “Description” box controls the message that appears under the payment fields on the checkout page.
- Payson email address – the email address tied to your Payson account.
- Agent ID – Requested from Payson.
- MD5 – Requested from Payson.
- Language – Set the language in which the page will be opened when the customer is redirected to Payson.
- Invoice fee – Enter the Invoice fee product ID in this text field if you want to utilize the Invoice fee feature.
- Debug – If this option is checked then details of communication with Payson are stored in a debug log at location /wp-content/plugins/woocommerce/logs/payson.txt.
- Press Save changes to save your changes.
Invoice fee setup
↑ Back to top- Add a simple (hidden) product. Mark it as a taxable product.
- Go to the Payson Invoice settings page and add the ID of the Invoice Fee product in the field Invoice fee. The ID can be found by hovering the Invoice Fee product on the Products page in WooCommerce. Note – do not add SKU or price of the invoice fee. Add the product ID in the settings field for the Invoice fee.
Testing
↑ Back to topTest Agent
↑ Back to topTest Credit Card
↑ Back to topFAQ
↑ Back to top{"result":"failure","messages":"","refresh":"false"}
What is wrong?
A. Most often this error appears because you are trying to make a purchase with the same email address as the registered Payson seller email. Payson interpret this as the seller and the buyer are the same person.
Q. I receive this error message when trying to order multiple items of one product:
array ( 0 => PaysonApiError::__set_state(array( 'errorId' => '590001', 'message' => 'The total amount specified for receivers does not match the total amount specified by the order items.', 'parameter' => 'orderItemList+receiverList', )), )
What is wrong?
A. This error concerns ONLY the Payson Invoice feature in the plugin. You need to have your shop set to “2” Number of Decimals to work properly with taxes and how they are calculated.
You will find the setting here: WooCommerce –> Settings –> Generell –> Number of Decimals
If you do not want to show decimals in your prices to your customers we recommend you to use this snippet in your functions.php file or in a separate plugin:
/**
* Trim zeros in price decimals
**/
add_filter( 'woocommerce_price_trim_zeros', '__return_true' );