• Resolved newbee_sue

    (@newbee_sue)


    Hi thank you for the wonderful plugin. The paypal payments are received. But the client now has connected receipts for paypal and the description field needs to be set on the form to “consultation”. We wrote to PayPal about this and they responded that the description needs to be sent when the request is sent to PayPal. Below is the answer we received from PayPal.

    Hence, the third party need to make the change at their end such that they include the description field under the purchase_units array or under the items array. Please see below link for more information :
    https://developer.paypal.com/api/orders/v2/#definition-purchase_unit_request
    https://developer.paypal.com/api/orders/v2/#orders_create

    What can we do within your plugin to have it send the description that we want to PayPal either within the purchase_units array or the items array?

    In the future we may have multiple forms with different descriptions for each.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @newbee_sue

    I hope you’re well today and thank you for your question!

    Currently, such description option is only supported with Stripe payments but not PayPal.

    We do already have support for descriptions on our “to do” list of future features so it should be added in future but I don’t have ETA at the moment.

    As a workaround for now, you can try this custom patch:

    https://gist.github.com/wpmudev-sls/b8ff5a66d81b44a58e5c1b1ebbfa48f5

    You would need to add it to the site as MU-plugin

    – put the code into a file with .php extension (e.g. “forminator-pp-description.php”)
    – upload the file to the “/wp-content/mu-plugins” folder of your site’s WordPress installation

    Note also that the code checks form for two fields of type “Hidden”. You will need to add two such fields to the form

    – first one should have “Default Value (optional)” set to “Custom Value” and then “Custom value” set to “paypal_description” string

    – second one should also have “Default Value (optional)” set to “Custom Value” but then the “Custom value” should be set to contain actual description text that you want to send to PayPal

    If you already have other “Hidden” fields on form, you may also need to adjust “hidden-1″/”hidden-2” in the code to match relevant fields (those that you added) IDs.

    Best regards,
    Adam

    Thread Starter newbee_sue

    (@newbee_sue)

    thank you Adam. We will try and get back to you

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @newbee_sue ,

    We haven’t heard from you for some time now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘paypal description’ is closed to new replies.