How to Integrate Third Party Payment Gateway for Postpaid Plans

shaz3606
Participant II

Hey all,

I am new to Apigee,

I would like to know about How Postpaid Plans (Recurring Plans) Payments are done .

I am Integrating Our own Payment Gateway so

1. How to integrate a third party Payment Gateway For Postpaid Payments?

2. Any Webhooks or Notification Service is available to Trigger Payments for Postpaid (recurring) payments.

For example:

Plan Gold(Postpaid):

Monthly 20 USD

Recurring Monthly

IF customer "A" subscribed to JAN 1 he should be Charged 1 Feb and so on

SO the payments are done by a Thirdy party Payment gateway so how to set up this payment

gateway to postpaid plans payments.

How to handle Payment Failures?

3. do I need to handle it outside of Apigee and call Credit API

0 4 771
4 REPLIES 4

The integration with Third Party Payment gateways handles the prepaid plan use case.

For the postpaid case, you'd need to write the integration yourself, so that at the end of a billing period, a payment request is sent to the gateway with the correct amount

Thank you for your answer.

I do have some idea like this from a community post But There are not enough details Like

1. Can We Configure Schedule Job in Apigee or Built-in Scheduler Job Is available to configure to call the Third-party Payment Gateway(With Enough Information For payment Like Amount, Dev, Plan..etc)?

2. Is any Webhook Or Notification service available for Triggering the Payment Gateway Monthly with Billing Information(Like Developer Or Company and Amount to Pay, Plan, Package..etc)?

3. Or this Integration Should be Outside of Apigee and Use Revenue Report API to get all this information?

Let me know Your Thoughts, Because if we have the option do this at Apigee we will be very happy yo do,

Otherwise, we need to write a custom solution outside of Apigee using Apigee Revenu Report API.

The best approach is #3, carry out this integration outside of Apigee. This way it would be easy for you to control when to schedule the task (eg: first day of the month). The integration as you've suggested could use the Revenue Report API to pull the necessary information and then integrate with the payment gateway to send a payment request.

Here's a high level outline of the tasks::

At the end of a billing cycle, usage information needs to be pulled from Monetization for 2 purposes:

  • Generate an invoice: Use POST /organizations/{org_name}/transaction-search
    • Specify search criteria: month and year, developer ID, package ID, etc
  • Determine owed amount so that a payment request is sent to the payment gateway:
    • Can be worked out from previous call, or alternatively
    • POST organizations/{org_id}/revenue-reports
  • If a credit limit has been set, you need to issue a credit to the developer/company. This decreases the used amount
    • Use POST /organizations/{org_name}/monetization-packages/{package_id}/rate-plans/{rate-plan_id}/real-currency-credit-transactions

In this digest https://expressdigest.com/ you will find one interesting Leafletcasino website and on it you can find out about one of the most reliable payment methods Interac, which has existed for many years and is used by many popular sites. Look and see for yourself