Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It looks like creating a payment entity requires a number of properties to be passed in:
$payment = new Payment(array(
'context' => 'payment_donation',
'context_data' => array(
'destination' => $_GET['q'],
),
'currency_code' => $currency_code,
'description' => $description,
'finish_callback' => 'payment_donation_finish',
'method' => $payment_method,
));
It would be good to have these documented somewhere.
Comments