WebToPay integration
The faster way to send and receive money all over the world.
How to integrate PostAffiliatePro with WebToPay
This integration method uses integration with WebToPay API. More info about this payment gateway can be found here:
https://www.webtopay.com/index.php?2595448377
The integration method is divided into two main sections:
- Passing the visitor ID (cookie value) to the webtopay gateway
- Reading the response from webtopay
Getting the cookie value
First thing is to get the cookie value, e.g. using standard PHP methods, or you can use our script that reads it from cookies:
writeCookieToCustomField OR writeCookieToLink
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.writeCookieToCustomField('fullCookieInfoId');
PostAffTracker.writeCookieToLink('affCookieLinkId', 'papCookie');
</script>
Based on the method you used, you can get the cookie value from GET or POST parameter.
Passing the visitor ID into the gateway
Now, when you have the value, you have to attach it to callbackurl, BEFORE using the function WebToPay::buildRequest($request).
E.g. if your callbackurl parameter was set like this:
$request[‘callbackurl’] = $request_url;
append the cookie value, sent in GET parameter like this:
...
$request['callbackurl'] = $request_url."?papCookie=".$_GET['papCookie'];
...
This will send get parameter “papCookie” to the gateway. This is needed so we can use Post Affiliate Pro API when parsing response from webtopay… otherwise the sale would be unreferred.
Parsing the response
After calling the function WebToPay::checkResponse() in your callbackurl, in a place where you are sure everything is correct, you can call our API to register a commission.
Do not forget to set correct path to your PapApi.class.php file (in api/ directory of Post Affiliate Pro):
// Post Affiliate Pro integration snippet --------------------------
if (isset($_GET['papCookie']) && (strlen($_GET['papCookie']) > 20)) {
require_once "path_to_PAP/api/PapApi.class.php"; // set correct path to API file here
$saleTracker = new Pap_Api_SaleTracker('https://URL_TO_PostAffiliatePro/scripts/sale.php');
$saleTracker->setAccountId('default1');
$saleTracker->setVisitorId(substr($_GET['papCookie'], -32)); // returns only visitor ID, no "default1" prefix
$total = $response['amount']/100; // need to get rid of hundreds
$sale = $saleTracker->createSale();
$sale->setTotalCost($total);
$sale->setOrderID($response['orderid']);
$saleTracker->register();
}
// /Post Affiliate Pro integration snippet -------------------------
This is all you need to track a sale commission.
More info can be found here:
https://www.webtopay.com/index.php?683722975
What is WebToPay?
WebToPay is a reliable, secure, and fast online payment system designed to facilitate the sale and purchase of goods and services over the Internet. Acting as an intermediary between companies and their clients, it automates the settlement process and supports transactions 24/7. WebToPay caters to both macropayments through e-banking systems and micropayments via SMS and telephone, all without any monthly or connection fees. It seamlessly integrates with third-party systems like Post Affiliate Pro API and accepts common currencies such as USD, EUR, RUB, and LTL.
WebToPay is offered by Paysera, a company founded in 2004 under the name Elektroniniai verslo projektai. The journey began with the launch of its payment processing project, mokejimai.lt, in 2006. Over the years, it underwent rebranding to become EVP International and eventually adopted the name Paysera in 2014. Demonstrating significant global expansion, Paysera introduced innovative solutions like Paysera Tickets and IBAN accounts, extending its reach to over 100 countries.
WebToPay is tailored for businesses engaged in online transactions, providing them with efficient and secure payment processing solutions. Its target audience includes companies and individuals who require a dependable and versatile online payment system that supports a variety of payment methods and caters to international clients. The platform’s easy installation process and low transactional fees—without any monthly charges—make it an attractive option for a wide range of business users.
Key Features of WebToPay
- Secure Checkout API Integration: WebToPay offers a secure and seamless integration with its Checkout API, ensuring that transactions are processed safely and efficiently.
- Flexible Installation: The platform provides flexibility in installation, allowing businesses to integrate the system in a manner that best suits their operational needs.
- PHP 7.4 Security Compliance: WebToPay is compliant with PHP 7.4 security standards and offers testing capabilities to ensure robustness.
- Integration with Post Affiliate Pro: It integrates with Post Affiliate Pro, enhancing affiliate marketing efforts by tracking sales commissions through API integration.
- User-Friendly Interface: With a focus on usability, WebToPay provides a user-friendly interface and comprehensive documentation for ease of use.
Pricing Options for WebToPay
Specific pricing details for WebToPay are not publicly available. Interested parties are encouraged to contact WebToPay directly or visit their official website to obtain detailed information about their pricing structure.
User Insights on WebToPay
WebToPay has garnered a TrustScore of 4.5 out of 5 based on 53 user reviews, reflecting high levels of customer satisfaction.
Pros:
- Quick and Secure Payments: Users appreciate the speedy and secure processing of payments.
- Responsive Customer Support: The platform is commended for its responsive and helpful customer service team.
- International Client Handling: Businesses benefit from its ability to handle transactions with international clients seamlessly.
Cons:
- High Fees: Some users have reported concerns about high transaction fees.
- Isolated Reports of Unprofessional Behavior: A few reviews mention instances of unprofessional conduct, though these appear to be isolated cases.
These reviews provide visual insights into how WebToPay operates and how it can be leveraged to enhance business transactions.
Alternatives to WebToPay
For businesses exploring other options, the following alternatives to WebToPay are worth considering:
- Paysera: An online settlement system for trading goods and services, offering a wide range of payment solutions.
- Moqpay: Provides global payment solutions with multiple payment methods tailored to diverse business needs.
- Post Affiliate Pro with WebToPay: Enhances affiliate marketing by facilitating money transfers and tracking sales commissions through API integration.
- lib-webtopay on GitHub: A library for integrating WebToPay’s Checkout API, ideal for developers looking for seamless integration.
Integrate GoPay with Post Affiliate Pro to effortlessly register sale commissions using the API. Learn how to set the SuccessURL parameter, send special data, and ensure smooth commission registration. Enhance your affiliate marketing with a tailored dashboard and explore its benefits by scheduling a call with us today!
Integrate PayPal seamlessly with Post Affiliate Pro using IPN callback to track sales and generate commissions for affiliates. Follow our simple steps to set up the PayPal IPN handling plugin and ensure your transactions are efficiently managed. Discover the benefits of streamlined affiliate management with Post Affiliate Pro today!
Discover seamless PayPro integration with Post Affiliate Pro, the perfect eCommerce platform for selling Software, SaaS, and Cloud Services. Easily track sales by adding tracking code to your thank you page, ensuring secure transactions via HTTPS. Explore more integrations and start your free trial today!
Integrate Segpay with Post Affiliate Pro to effortlessly track recurring payments and refunds. Follow our simple setup guide to enhance your digital payment processing and reduce fraud risk. Transform your business with our trusted, user-friendly affiliate marketing software featuring 24/7 support. Start your free trial today!