Creating a Merchant at Yourpay is easy. Here is a guide to get you started.
I've included a code example here.
TIP You can open the file with notepad, if you do not have an editor for viewing source code.
In the code example we are posting a number of variables to our API function "create_merchant". These variables are as follows:
Note: 'Form Field name' does not contain the actual names of the input fields, but serves as a reference of what to input where.
|Form Field name||Variable Name||Description|
|CVR/SE/VAT||CompanyVAT||The CVR/SE/VAT number of the merchants company|
|Contact Name||PersonalName||The name of the contact person|
|Merchant Email||PersonalEmail||The Email address of the contact person|
|Company details||CompanyDetails||Additional comments about the merchant|
|Combined MerchantID||merchantidCombined||If you wish to link this merchant to another as a sub, then provide the merchantid of the master account to link with. Otherwise leave blank.|
|Shop type||CompanyShop||Which shop type is this? WooCommerce, Prestashop, Shopify etc.|
|City||CompanyCity||City of the company|
|Company Phone||CompanyPhone||Phone number of the contact person|
|Address||CompanyAddress||The address of the company|
|Postal code||CompanyPostal||The postal code of the companys city or district|
|Domain Name||CompanyDomain||The domain name of the webshop|
|Name of Merchant||CompanyName||The company name of the merchant|
|PSP||psp||If you're a partner with Yourpay, and you're creating the account on the merchants behalf, provide your partner id. Otherwise leave blank|
If you run the code example you're presented with a form, which look like this:
When you have filled in the form and submitted with 'Create Merchant' you get a response back from our API. This response looks like this:
Below is a table which describes the variables in the response json.
|success||'1' if the call succeeded, '0' if it failed.|
|merchantid||The merchantid of the created merchant.|
|prod_merchantid||Will always be '0' as you need to go through Yourpays onboarding process to receive a production merchantid.|
|user_id||User id of the merchant. Used in various API calls|
|username||This is the username the merchant should use to login to our admin portal.|
|pwd||The assigned password for the merchant|
The comments about the merchant that you input in the form.
|token||The merchant token. You need this if you're using our plugins.|
We also send a welcome email with login information, to the email specified in the variable 'PersonalEmail'. This is everything you need to know to create a merchant. Should you have further questions, don't hesitate to contact us at firstname.lastname@example.org.