The client library requires a merchant specific client ID, but we can’t reliably fetch this from payment gateway configurations in every context.
Let’s create a global settings form for this module at admin/commerce/config/payment/paypal-credit with the label “PayPal Credit messaging.” The options should be:
“PayPal client ID” as optional with a description, “You must supply a PayPal client ID for messaging to appear where you have enabled it.”
A checkbox labeled “Enable PayPal Credit messaging on Add to Cart forms.”
Comment | File | Size | Author |
---|---|---|---|
#2 | global-settings-form-3173886-1.patch | 2.95 KB | karengrey |
|
Issue fork commerce_paypal-3173886
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
karengrey CreditAttribution: karengrey at Centarro commentedComment #3
rszrama CreditAttribution: rszrama at Centarro commentedI originally thought we'd need a schema.yml file to describe the configuration option, but your patch obviously worked just fine without it. Turns out it seems primarily related to multilingual translation, which obviously isn't necessary for this module. I only lightly edited the interface text on commit. Thanks!
Comment #4
rszrama CreditAttribution: rszrama at Centarro commented(Tweaking my commit attribution.)
Comment #6
karengrey CreditAttribution: karengrey at Centarro commented