• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / asp_stripe_payment_completed data is subscription obj rather than charge obj

[Resolved] asp_stripe_payment_completed data is subscription obj rather than charge obj

· ·

Home › Forums › Stripe Payments Plugin › asp_stripe_payment_completed data is subscription obj rather than charge obj

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 11 months ago by Propertydrum.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 14, 2022 at 11:52 am #4586
    Propertydrum
    Participant

    I’m using the subscriptions add-on and implementing asp_stripe_payment_completed which according to the documentation provides the $post_data and the $charge object but the $charge object is actually the subscription, can I get the $charge object as well/instead?

    $charge is Stripe\Subscription JSON: { “id”: “sub_1LAY1vIypMs78IJNtxP5bPXt”, “object”: “subscription”, “application”: null, …

    June 15, 2022 at 4:47 am #4589
    Admin
    Keymaster

    For subscription payments the charge is processed differently than one time payments. For subscriptions, that subscription object is the main object.

    you can make API calls to Stripe API with the Subscription ID (example: sub_1LAY1vIypMs78IJNtxP5bPXt) and retrieve various details that is associated with that subscription.

    Coding related customization is beyond the scope of this standard support forum. If you need to hire some developer time, you can contact us for a custom development job.

    June 15, 2022 at 1:08 pm #4590
    Propertydrum
    Participant

    OK thats great, thanks

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.