Configuring a Custom Payment Method for Klarna

Create a payment method for Klarna as a custom payment method. The custom payment method is normally configured as an Alternative Payment Method. The Alternative Payment Method requires that you create a Gtwy Prov Payment Method Type record to associate the custom payment method with a payment gateway. Currently, the Salesforce user interface does not enable you to create a Gtwy Prov Payment Method Type record, so you must use Workbench to create the record type.
  1. To configure a new integration with Salesforce for the custom payment method, follow the steps described in Integrating with Salesforce.
  2. After the new integration is created, open Workbench and go to this endpoint:
    (MD/ToolingAPI):/services/data/v58.0/sobjects/GtwyProvPaymentMethodType
  3. Create your payload using these fields:

    ADDITIONAL INFORMATION

    • Comments
      : This optional value can be used to describe the record.
    • Developer Name
      : This value is the unique API name of the record.
    • Master Label
      : This value is a human-readable name for the record.
    • Gateway Provider Payment Method Type
      : This value is the name of the payment method in the storefront. This value must exactly match the payment method ID used in B2C Commerce.
    • Payment Gateway Provider Id
      : This value is the ID assigned to the Payment Gateway Provider record associated with the payment processor for the payment method.
    • Payment Method Type
      : This value can be one of these options:
      AlternativePaymentMethod
      ,
      CardPaymentMethod
      , or
      DigitalWallet
      . (When using
      AlternativePaymentMethod
      , you must first create a corresponding RecordType record.)
    • Record Type Id
      : This value is a reference to the RecordType record of the
      AlternativePaymentMethod
      .
This example shows what your payload should look like:
{ "DeveloperName": "Klarna", "MasterLabel": "Klarna Payment", "GtwyProviderPaymentMethodType": "KLARNA", "PaymentGatewayProviderId": <Id of Payment Gateway Provider>, "PaymentMethodType": "DigitalWallet", "RecordTypeId": <ID of Record type in Alternate Payment Method> }