Add an SAHC transaction type for processing a sale and creating a token

Created on 4 July 2020, over 4 years ago
Updated 14 November 2023, about 1 year ago

Currently authorization,create_payment_token is supported but from what I understand of Cybersource API documentation the same request format is required for sale,create_payment_token.

Can we simply extend this with:

const COMMERCE_CYBERSOURCE_SAHC_TRANSACTION_SALE_CREATE_TOKEN = 'sale,create_payment_token';

and

    $form['transaction_type'] = [
      '#type' => 'select',
      '#title' => $this->t('Transaction type'),
      '#default_value' => $this->configuration['transaction_type'],
      '#required' => TRUE,
      '#options' => [
        self::COMMERCE_CYBERSOURCE_SAHC_TRANSACTION_AUTH_CREATE_TOKEN => $this->t('Authorize funds and create payment token'),
        self::COMMERCE_CYBERSOURCE_SAHC_TRANSACTION_SALE_CREATE_TOKEN => $this->t('Capture funds and create payment token'),
      ],
    ];
โœจ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ธ๐Ÿ‡จSeychelles tko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024