PayPal

PayPal is a supported Adyen payment method that is used for transactions during the sales order workflow. PayPal can be set as a CustomCharge payment method in the Payment Methods pick list. For example, PayPal can be configured as CustomChargeX, where X can be a number between 1-15.

Before you can use payment processors and their supported payment methods for transactions during the sales order workflow, configuration is required in Order Management.

The order XML is imported into Order Management with the payment tag when the payment is Captured outside of Order Management. The Capture Delay can be set to Manual or Immediate in the Adyen merchant account. Capture Delay is not set in Order Management. Custom attributes can also be added to the payment tag in the order XML.

Example 1: Payment Tag in XML

This example shows the payment tag in XML when the Capture Delay is set to manual or immediate and the custom <method-name> = paypal. In both cases, the <transaction-type> = CAPTURE.
<payments>
  <payment>
    <custom-method>
      <method-name>paypal</method-name>
    </custom-method>
    <amount>69.57</amount>
    <processor-id>Adyen</processor-id>
    <transaction-id>1714482349077657</transaction-id>
    <transaction-type>CAPTURE</transaction-type>
  </payment>
</payments>

Example 2: Custom Attributes Added to the Payment Tag in XML

This example shows the payment tag in XML when custom attributes are added and the Capture Delay is set to manual or immediate and the custom <method-name> = paypal. In both cases, the <transaction-type> = CAPTURE.

<payments>
  <payment>
    <custom-method>
      <method-name>paypal</method-name>
    </custom-method>
    <amount>69.57</amount>
    <processor-id>Adyen</processor-id>
    <transaction-id>1714482349077657</transaction-id>
    <transaction-type>CAPTURE</transaction-type>
    <custom-attributes>
       <custom-attribute attribute-id="Adyen_eventCode">AUTHORISATION</custom-attribute>
       <custom-attribute attribute-id="Adyen_paymentMethod">paypal</custom-attribute>
       <custom-attribute attribute-id="Adyen_pspReference">1714482349077657</custom-attribute>
       <custom-attribute attribute-id="Adyen_value">6957</custom-attribute>
       <custom-attribute attribute-id="merchantAccountCode">Test</custom-attribute>
       <custom-attribute attribute-id="merchantReference">1000</custom-attribute>
    </custom-attributes>
  </payment>
</payments>