Successful Payment Notification Error

This topic contains 4 replies, has 2 voices, and was last updated by  Paolo 8 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #111869

    Alicia
    Full Member
    Post count: 29

    Hi,

    I am testing the Stripe recurring payment function on my development site. The subscription process is working fine but the information provided in the transaction details does not seem to be correct.

    In the example below, I am using a $1.00 a day subscription plan. The notification and transaction details for the initial subscription and payment is below:

    ____________________________
    Your payment was successfully received. Your transaction details are below

    ##### THIS IS A SUBSCRIPTION SIGNUP AND IF A FREE TRIAL WAS OFFERD NO PAYMENT WILL BE RECIVED #####
    ————————————————–
    Payment Details for Invoice ID #11
    ————————————————–
    Listing Title: Upgrade Listing: Hotel Four Seasons
    ————————————————–
    Trans ID: evt_17VQNKHk0BNCNHjtkUWk0IkO
    Status: customer.subscription.created
    Amount: $1.00
    Type: single payment
    Date: 2016-01-20 13:08:19
    Method: Stripe
    ————————————————–
    ____________________________

    I received another notification immediately after this one which does not make sense to me since I should not receive 2 notifications for 1 payment. Further, it also seems to have errors (see below):

    ___________________________
    Your payment was successfully received. Your transaction details are below

    ————————————————–
    Payment Details for Invoice ID #
    ————————————————–
    Listing Title:
    ————————————————–
    Trans ID: evt_17VQNKHk0BNCNHjt1xf5u1zN
    Status: charge.succeeded
    Amount: $0.00
    Type: subscription
    Date: 2016-01-20 13:08:20
    Method: Stripe
    ————————————————–

    There is no information for Invoice ID #, Listing Title and Amount is $0.00.

    The notification for the next day has the information below. The same problem with no information for Invoice ID #, Listing Title and Amount is $0.00.

    _________________________
    Your payment was successfully received. Your transaction details are below

    ————————————————–
    Payment Details for Invoice ID #
    ————————————————–
    Listing Title:
    ————————————————–
    Trans ID: evt_17VnxvHk0BNCNHjtjCiWlqC5
    Status: charge.succeeded
    Amount: $0.00
    Type: subscription
    Date: 2016-01-21 14:19:41
    Method: Stripe
    ————————————————–

    Each subsequent notification has the same problem (no information for Invoice ID #, Listing Title and Amount is $0.00). The status also indicates the charge succeeded but does not indicate successful payment.

    I believe I have identified the problem (blame it on my 25+ years experience in systems analysis and project management and my 12+ years in IT management).

    In reviewing the Stripe events and webhooks, I think the wrong events are being used (“customer.subscription.created” and “charge.succeeded”). The email notification refers to a successful payment. There is an event that refers to the successful payment of an invoice (“invoice.payment_succeeded”) which contains all the information (Invoice ID #, Listing Title and Amount). I believe the “invoice.payment_succeeded” event is the one that should be used instead of the “customer.subscription.created” or “charge.succeeded” events which only indicate that the subscription was created and the customer was charged but they do not indicate that a payment was successfully made.

    I am attaching PDF copies of “customer.subscription.created”, “charge.succeeded” and “invoice.payment_succeeded” events for my test example. I hope it will be clear that the “invoice.payment_succeeded” event is the right one to use to ensure that the information in the email notification is correct. I do hope that this problem can be fixed as soon as possible.

    Thanks.

    #111878

    Alicia
    Full Member
    Post count: 29

    Note: This problem is specific to the recurring payment process. I know that the “invoice.payment_succeeded” event is not created for one time payments and that is why the “charge.succeeded” event is used in that scenario. But the “charge.succeeded” event does not seem to work for the recurring payments so the “invoice.payment_succeeded” event should be used for recurring payments.

    Cheers.

    #111879

    Paolo
    Site Admin
    Post count: 31206

    Hi brathwb,

    thanks so much for reporting this with so many details. I’ve flagged this for the developers, who will fix it asap.

    We’ll include the fix in the next release.

    Thanks again,

    #111884

    Alicia
    Full Member
    Post count: 29

    You’re welcome any time.

    #115827

    Paolo
    Site Admin
    Post count: 31206

    Just FYI, message from the developers:

    Now for single payment, it will use event charge.succeeded and for recurring payments it will use invoice.payment_succeeded event to manage successfull payments and manage invoices.
    Also issue fixed that send notification without have any invoice or listing details.

    It will be in the next version.

    Thanks,

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount