• Resolved cwcj

    (@cwcj)


    Is there a way that I can use the shortcode to populate the “Description” field in the Stripe payment? As I understand it “Name” creates a product, but does not populate this field.

    I use a flow that is triggered on the creation of a Stripe charge and I need to get the data on the payment (ie. what for) and have previously used the description.

    For completeness, the Shortcode I use is:

    [wp_stripe_checkout_session name=”Dynamic info” button_text=”Pay Now” prefill_wp_email=”true”]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, Thanks for the feedback. Now you can optionally set a product description in the shortcode. For example:

    [wp_stripe_checkout_session name="Dynamic info" price="2.99" description="Dynamic info Description" button_text="Pay Now" prefill_wp_email="true"]

    Please update the plugin and see how it goes.

    Thread Starter cwcj

    (@cwcj)

    Thank you for such a prompt response. I’ve tested this out and can see the change, but fear I was not clear in my request.

    I was talking about the description in the payment or charge section, not the description of the product. At the moment the description of the payment appears to be set to the payment ID.

    The reason for this elsewhere is that I use a trigger from the creation of a charge and I use the info from the payment description. Unfortunately, the product details do not appear on the trigger.

    Plugin Author Noor Alam

    (@naa986)

    I’m not sure if it’s possible with this API. I don’t see any other description parameter that can be set for the payment/charge. You can also contact Stripe to confirm.

    Thread Starter cwcj

    (@cwcj)

    Hi Noor,

    Again thank you for coming back to me so quickly. I will see if I can get something from Stripe.

    The parameter is just an optional parameter that is part of the ‘create a charge’. Currently the plugin sets it to ‘null’. I’m not sure if the below helps make what I’m trying to say clearer?

    https://stripe.com/docs/api/charges/create#create_charge-description

    Thanks

    Plugin Author Noor Alam

    (@naa986)

    Thanks for the link. In the old checkout method, the card needed to be charged on site with that function (there was no Stripe payment page). The plugin no longer uses it in the new method (session) where the customer is redirected to Stripe.

    Thread Starter cwcj

    (@cwcj)

    Thanks again Noor for your helpful and prompt response. I have got in touch with Stripe to understand what I can do on their end to get more information when a transaction occurs to see the product that was bought (both on the mobile app and API).

    Another related question that might help me solve my current difficulty. I see when the order is created a post is created with meta data including txt_id, name, amount and email. Is there a way of increasing this to include the product_name as a meta data tag?

    Many thanks

    Plugin Author Noor Alam

    (@naa986)

    It is possible now. The _product_name meta has been added.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Populate Stripe Payment Description field’ is closed to new replies.