Resurs Bank is specialised in consumer credits, loans and issues credit cards.
Resurs Bank is part of The Resurs Group, which operates through subsidiaries Resurs Bank and Solid Försäkring, is a leader in retail finance in the Nordic region, offering payment solutions, consumer loans and niche insurance products.
You can receive and handle Resurs Bank transactions through Yourpay, through Yourpays processing engine.
To get started we have included a code example here.
TIP You can open the file with notepad, if you do not have an editor for viewing source code.
Before you run the code, you need to set some parameters in the code. Please take a look at the following table:
If you have another different product, it would then be product_2_id, name etc.
|total_products||The total amount of unique products on the order.|
|product_1_id||The id of the product.|
|product_1_name||The name of the product.|
|product_1_qty||The amount of the product on order.|
|product_1_total||The total amount.|
|product_1_tax||The amount in tax.|
|billing_first_name||First name of the consumer.|
|billing_last_name||Last name of the consumer.|
|billing_address_1||The primary billing address.|
|billing_address_2||The secondary billing address.|
|billing_city||The city the consumer recides in.|
|billing_postcode||The postal code of the city.|
|billing_country||Two letter country code.|
|accepturl||The url we redirect the customer to when the payment is processed, normally a “thank you” page.|
|callbackurl||The URL we should send IPN’s to. Read more about IPN here|
|version||This is if you are running a specific version, then some dependancies are activated, however ‘201’ is a clean version so you can leave it as it is.|
|split||Should always be ‘0’|
|ShopPlatform||The shop used to make the order. for instance woocommerce, magento etc.|
|CurrencyCode||The ISO-4217 id of your desired currency. You can find a full list of currency codes here.|
|time||Unix timestamp of the moment of the transaction.|
|cartid||The orderid you wish to use for the transaction.|
|customername||The full name of the consumer.|
|MerchantNumber||The merchantid that the payment is being made for.|
|customer_email||The email of the consumer.|
|customer_phone||phone number of the consumer.|
|amount||The total amount to be paid by the consumer.|
Now if you run the code by uploading it to your server and navigate to the file through your browser you get window that looks like this:
Follow the instructions in the payment window and when the payment is completed you are returned to your defined accept url along with the following callback response:
|uxtime||Unix timestamp of the moment the Callback was made.|
|MerchantNumber||The merchantid which the transaction is processed for.|
|tchecksum & checksum||SHA1 encode of PaymentID + Integrationkey.|
|orderid||The orderid provided.|
|ShopPlatform||The platform from which the order was made on. WooCommerce, Prestashop, OpenCart etc.|
|amount||Amount reserved on the customers creditcard.|
|date||The date of the transaction note its in the format “YYYY-MM-DD”.|
|expmonth||Expiry month of the creditcard.|
|expyear||Expiry year of the creditcard.|
|tcardno||First Six & last four digets of the card number the rest is replaced by ‘X’|
|time||Unix timestamp that indicates the time of the transaction.|
|cardid||Our id for the card type used, VISA, mastercard etc.|
|currency||The currency code for the currency used in the transaction.|
NOTE: The variables related to creditcard data might be empty here because we don’t use them, in this case we simply pass them to Resurs Bank.
Congratulations you have now sucessfully completed a payment with Resurs Bank & Yourpay.