PHP code example of gingerpayments / ginger-plugin-sdk

1. Go to this page and download the library: Download gingerpayments/ginger-plugin-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gingerpayments / ginger-plugin-sdk example snippets


$transactions = new Transactions(
    new Transaction(...)
);

$transactions->addTransaction($transaction);

$transactions->removeTransaction($index);

$transaction = new Transaction(
    paymentMethod: "apple-pay"
);

  $transaction = new Transaction(
    paymentMethod: "ideal",
    paymentMethodDetails: new PaymentMethodDetails(...)
  );  
    

  $transaction->getPaymentMethodDetails()->setPaymentMethodDetailsIdeal();
  

$transaction->getPaymentMethodDetails();