• Resolved swa111

    (@swa111)


    Hi All,

    I am using the Stripe add on to collect payments on my website for previously issued invoices. Therefore I allow customers to fill in amount themselves and I have created a custom field to capture the invoice number they are paying.

    I would like that field to be transferred over to the Stripe description but the short description does not recognise this custom field.This is what I have entered the following in the short description:

    Invoice Payment: {custom_field}

    And that is exactly what is shown on the stripe payment description. Is there a way to get the information that was entered in the custom field to flow through to the short description?

    Thanks in advance.

    • This topic was modified 5 years, 2 months ago by swa111.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi.

    Custom field info goes to payment metadata. E.g. you can see it from your Stripe dashboard. It goes to order info and seller email notification as well if you configure it.

    In order for it to go into description, there is some programming required. If you’re familiar with programming for WordPress, I can provide you some details.

    Last, but not least – please update your Stripe Payments plugin to latest version (which is 2.0.3 at the moment). The one you’re using has some bugs that may prevent payment from happening.

    Thread Starter swa111

    (@swa111)

    Thanks for your reply Alexander,

    Have updated the plugin.

    While I am not too confident on the programming I have someone who can help me. So your guidance would be appreciated.

    thanks

    Nathan

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Also please disable old checkout API usage via Stripe Payments -> Settings, Advanced Settings tab, disable “Enable Legacy Checkout API” option and save settings.

    I will provide a code example a bit later.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    A new version 2.0.4 will be released most likely tomorrow. It will have additional hook that is required to add custom field to description of Stripe payment after payment is completed.

    Here’s example of the code that does the thing:

    https://github.com/erommel/stripe-payments-enhancements/blob/master/asp-custom-field-to-description/asp-custom-field-to-description.php

    You can also install this plugin: https://github.com/erommel/stripe-payments-enhancements/releases/download/0.0.1/asp-custom-field-to-description.zip. When enabled, it would automatically set description as custom field name: value. You can modify it per your needs.

    Note this would only work on Stripe Payments version 2.0.4 which is going to be released tomorrow.

    Thread Starter swa111

    (@swa111)

    Thank you Alexander.

    Very helpful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add custom field to Short Description’ is closed to new replies.