in

AlertPay Developers Community

Subscription IPN questions

Last post 09-14-2009 12:15 PM by AlertPay_Phoun. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 07-29-2009 8:12 PM

    Subscription IPN questions

    I've been testing some subscriptions and my IPN integration, and have some questions about the process:

    1) Is it possible to test a full subscription cylcle? (i.e. initial trial/payment, recurring payment, cancel/failure) The first payment comes through, but then there are no recurring payments after that, so I cannot test subsequent actions.

    2) When I make an initial payment, I receive two IPNs - the first one that comes back is Subscription-Payment-Success (which has no trial information), and the second one is Subscription-Success (which contains trial information).  Is this the correct order that they should be coming in?  Also, if the trial amount is 0.00, shouldn't the ap_totalamount that comes in during these transactions be 0.00, instead of the regularly recurring price?

    Thanks!

    Kyle

  • 07-31-2009 5:24 PM In reply to

    Re: Subscription IPN questions

    Hello,

    Here are the answers to your inquiries:

    1. Currently, the only way to test a full subscription cycle would be to set your subscription to one day and wait for it to re-occur.

     

    2. For the initial payment of a subscription, two IPNs will be sent out. The value of ap_status for the first IPN will contain the value "Success" and will have the information about the trial amount, period & unit, and the ap_totalamount will have a value of 0.00 in your case. The second IPN will contain the value "Subscription-Payment-Success" for ap_status and will have information about the price of the subscription itself, which is why the ap_totalamount is set to another amount rather than zero.

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
  • 08-01-2009 12:16 AM In reply to

    Re: Subscription IPN questions

    Thanks for the clarification!

    1) I currently have a test subscription with the subscription period as 1 day, but I haven't received any IPN notifications after the initial notifications.  Should I be continuing to receiving IPN notifications? I didn't know if test subscriptions wouldn't keep running...

    2) I received both IPNs for the subscription, but the order in which I received them was reversed - the timestamp for the Subscription-Payment-Success IPN is 1 second before the timestamp for Subscription-Success.

    Thanks!

    Kyle

  • 08-04-2009 3:08 PM In reply to

    Re: Subscription IPN questions

    Hello,

    We currently investigating what you have mentioned in your message and we will provide with the answers as soon as possible. Also, I would suggest you to open a support ticket at our helpdesk for any specific questions that you may have about our system as you will receive as quicker response.

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
  • 08-05-2009 10:00 AM In reply to

    Re: Subscription IPN questions

    Hello Kyle,

    1) For the time being we had to disable recurring payments for subscriptions which have been purchased while being on test mode, this is why you did not receive IPN notifications for you recurring test subscriptions. Our team is currently revising the flow to make it easier for merchants to be able to test the full subscription cycle.

     

    2) Since both IPN notifications are sent out at the same time it is hard to predict which one you would receive first. We will also be revising this flow and will have it so that the Subscription-Payment-Success is sent out a couple of seconds after the Subscription-Success.

  • 08-05-2009 2:27 PM In reply to

    Re: Subscription IPN questions

    Thanks for both of your answers -- I really appreciate it! Is there a timeline at all for being able to test the recurring payments?  Thanks!

    Kyle

  • 09-12-2009 4:16 PM In reply to

    Re: Subscription IPN questions

    I just wanted to check to see if the subscription cycle can be fully tested now? Thanks!

    Kyle

  • 09-14-2009 12:15 PM In reply to

    Re: Subscription IPN questions

    Hello,

    Unfortunately, it is still impossible to implement a full subscription test cycle. However, we have recently introduced a new IPN variable for the subscription, which will allow you to keep track of the reoccurring payments. The variable is called 'ap_subscriptionpaymentnumber' and you will receive it only for a reoccurring payments. When you will first receive this variable, it will have an initial value of '2' since it is the second payment that a user would have made to you for a particular subscription. Therefore, for the first payment, you may check only for 'ap_status=Subscription-Payment-Success' and ignore the 'ap_status=Success'.

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
Page 1 of 1 (8 items)

  AlertPay - Verified by Visa AlertPay - secure credit card and checking services BBBOnline Reliability Program