Maximize the value of your existing affiliate marketing software and extend its possibilities with a wide range of integrations, plugins and apps. All built to improve the strong foundations of Post Affiliate Pro.
A suite of APIs that powers commerce for businesses of all sizes.
Stripe makes it easy to start accepting credit cards on the web today. The integration method uses our built in plugin for notification handling.
The integration handles orders, recurring orders and refunds as well. It also supports lifetime commissions and coupon handling.
Each customer account in stripe has an extra field called ‘description‘. In this integration method, we are using it. The task is to add the (tracking) cookie value into the description field found in your order form. The easiest way is to add this code to your payment form:
When the form is submitted (customer is ordering), you can process the form data the standard way and before creating a charge and a customer account (with Stripe_Customer::create), you have to use the pap_custom data from the submitted form and set the value as a customer description – “description” => $_POST[‘pap_custom’].
If you are using the Stripe Checkout then instead of the step above you need to do this one. Essentially what needs to be done is to insert into the clientReferenceId option of the stripe.redirectToCheckout function the tracking ID which can be obtained as explained this.
Here is an example of an integrated Stripe Checkout button:
The sale tracking will happen automatically, both for standard and for recurring charges. The last step is to set your Stripe to inform your Post Affiliate Pro about each charge. This is done by Stripe webhooks.
Webhooks are configured in the webhooks settings section of the Stripe Dashboard. Clicking Add endpoint reveals a form to add a new URL for receiving webhooks. Enter this URL there for live notifications:
In terms of events on which the webhook should be executed you can add all events or only invoice.payment_succeeded, charge.succeeded and charge.refunded. If you are tracking the Stripe Checkout you need a webhook also for checkout.session.completed event.
If you wish to track test payments as well set up the same webhook also in the test mode.
The last step is to activate the built-in plugin in your Post Affiliate Pro. Do not forget to configure it after activation. That’s it, you are done. All the transactions will now be tracked.
Do not forget to integrate your site with the click tracking code to make it all working.
Get exclusive offers and the latest news about our products and services delivered directly to your inbox.
We appreciate your recent sign up for a Post Affiliate Pro.
A message will be sent to your email address containing login details, right after your account is installed.
If you wait for a while, after installation is complete you will be able to access your account directly from here.
After the process is over, we will send the login details to your mailbox.
We’re available on multiple dates