Automatic import of your sellers

Sellers, partners, suppliers, helpers, customers, commissioners. It’s known by many namess, but for the sake of convenience let us call them sellers. If you have a business where you need to split the payment between yourself and some others, you can take advantage of Yourpay’s marketplace payment app. Here you have the opportunity to make an automatic import of your sellers.

Automatic import of your sellers

How to set up your marketplace

If you do not already have an account with us, you can create an account in less than 2 minutes. It costs nothing and you only pay a fixed transaction fee when you use our solution.

If you are already a customer, simply go to your admin page, go to “App Store” and find “Marketplace”. From here, there are several options. If you provide a product or service that requires rebilling, you can create a CCRG key, or a rebilling key, on all your transactions.

You can read more about that here.

Yourpays marketplace payment app

Please note that you must be approved to use the feature. This approval includes, among other things, a signature that states that you are responsible for any chargebacks and complaints. Furthermore, we also point out that the fee is charged on all recipients. We do not provide support for the code that you create on your own webshop.

You can also create a marketplace with single payments. You can use it if your products or services do not need to be repeated. This could be, for example, at the sale of handicrafts or online flea markets.

You can read more about that here

How to set up your automatic import of your sellers

If you use, for example, WooCommerce’s Product Vendors, or a similar system, a single piece of code can ensure that your sellers are automatically transferred from your shopping platform to your admin page. These sellers are automatically approved and do not have to submit documentation. This is if your marketplace is approved.

Below you can find code snippets for PHP and C #, which must be inserted on your page. If you use another language, or need more documentation, you can find it in our API documentation here.

You can also test your code using our Try Console and use Mock Server and see your callback.

Codesnippet, if you're using PHP

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://private-anon-eb209f8402-yourpay.apiary-mock.com/v4.3/generate_token?merchant_token=&MerchantNumber=&amount=&currency=&accepturl=&chainedpayment=&chainedamount=&chainedMerchantNumber=");
curl_setopt($ch, CURLOPT_HEADER, TRUE);

$response = curl_exec($ch);
$info = curl_getinfo($ch);


Codesnippet, 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-eb209f8402-yourpay.apiary-mock.com");

using var httpClient = new HttpClient{ BaseAddress = baseAddress };
using (var response = await httpClient.GetAsync("/v4.3/generate_token?merchant_token=&MerchantNumber=&amount=&currency=&accepturl=&chainedpayment=&chainedamount=&chainedMerchantNumber="))
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);

If you have questions about the use of marketplace, our prices or other of our tools, you are welcome to contact us on telephone 70 555 678 or email.

Was this article helpful?
Dislike 0
Views: 5

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