How to set up Yourpay's marketplace payment app

Yourpay’s marketplace payment app can be used by anyone who needs to split payment, and is often used by the following types of business:

  • For items on commission, for example at handicrafts or online flea markets
  • For goods when selling affiliate products
  • For commission salaries for, for example, cleaning work or construction work

Or if you have a completely fourth type of business where you need to split the payment, it is easy and simple to set up.

Marketplace can be set up to automatically distribute a payment over several recipients so that all parties can get their share.

Please note that the transaction fee is deducted from all parties.

To use our app, you must first and foremost have an account with us. It does not take more than a few minutes.

How to set up a marketplace on your account

If you already have an account with us, all you need to do is log in to your admin and install the app. You find it here:  Yourpay admin.

  • Log in with your username and password
  • When you log in, you see your Dashboard
  • Here go to App Store in your leftside menu and click on “Marketplace”

After having clicked on “Read More” you can read a short description and then click on “Install” in order to activate the function.

Yourpays marketplace payment app
Log in to your admin page, find App Store and Marketplace
Yourpays marketplace payment app
Press Install to activate the plugin

Inside our API you can download the code snippet and paste it into your webshop. In our APIary you can also go in and test your code and check your callback. You will need the piece of code called “Generate Token, Multiple Receipients.

Below you can find it for PHP and for C #. Remember that you must enter the correct values when inserting the code snippet.
We would like to point out that we are happy to help, but we do not provide support for the code in your webshop.

Code snippet, if you're using PHP

<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://private-anon-7d50f74b54-yourpay.apiary-mock.com/v4.3/generate_token?merchant_token=&MerchantNumber=&ccrg=&ShopPlatform=&amount=&currency=&cartid=&accepturl=&callbackurl=&langauge=&customername=&time=&chainedpayment=0&recipients=&merchant2=&merchant3=&merchant4=&amount2=&amount3=&amount4="); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Content-Type: application/x-www-form-urlencoded; charset=UTF-8",)); $response = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); var_dump($info["http_code"]); var_dump($response);

Code snippet, if you're using C#

//Common testing requirement. If you are consuming an API in a sandbox/test region

//uncomment this line of code ONLY for non production uses.

//System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

//Be sure to run “Install-Package Microsoft.Net.Http” from your nuget command line.

using System; using System.Net.Http; var baseAddress = new Uri("https://private-anon-7d50f74b54-yourpay.apiary-mock.com"); using var httpClient = new HttpClient{ BaseAddress = baseAddress }; { { using (var response = await httpClient.GetAsync("/v4.3/generate_token?merchant_token=&MerchantNumber=&ccrg=&ShopPlatform=&amount=&currency=&cartid=&accepturl=&callbackurl=&langauge=&customername=&time=&chainedpayment=0&recipients=&merchant2=&merchant3=&merchant4=&amount2=&amount3=&amount4=")) { string responseHeaders = response.Headers.ToString(); string responseData = await response.Content.ReadAsStringAsync(); Console.WriteLine("Status " + (int)response.StatusCode); Console.WriteLine("Headers " + responseHeaders); Console.WriteLine("Data " + responseData); } } }

Setting up your partner/seller

When you create a partner / seller in yourpay admin, they are automatically assigned a merchant ID. You create them simply by going to your admin page and if your account is already approved as a marketplace, they will be automatically approved, without having to go through our normal approval procedure. You can find these on your admin page under “Domains”.

Before you put your entire Yourpay marketplace payment app into production, we always recommend testing the system, with a test payment.

Didn't find what you were searching for?

Was this article helpful?
Dislike 0
Views: 34

Fandt du ikke svar på det du søgte?

Yourpay har i perioden 16/09-20/09 haft tekniske udfordringer på opkrævnings funktionen. Dette er nu løst, og dataen er ved at blive uploadet i admin.
Tak for forståelsen.