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.”

Command icon 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:

    Support from Acquia helps fund testing for Drupal Acquia logo

    Comments

    karengrey created an issue. See original summary.

    karengrey’s picture

    rszrama’s picture

    Status: Active » Reviewed & tested by the community

    I 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!

    rszrama’s picture

    Assigned: karengrey » Unassigned
    Status: Reviewed & tested by the community » Fixed

    (Tweaking my commit attribution.)

    • rszrama committed 9de2d0c on 8.x-1.x authored by karengrey
      Issue #3173886 by karengrey, rszrama: Create a global settings form for...
    karengrey’s picture

    Component: PayPal / IPN » User experience

    Status: Fixed » Closed (fixed)

    Automatically closed - issue fixed for 2 weeks with no activity.