Solved Modifying PayPalRest plan parameters requires override whole method

This topic has been solved
K

Kirby

Guest
For non-recurring payments the PayPalRest has method getPaymentParams which allows to easily modify the parmeters.

However, when creating a subscription plan the parameters are hardcoded somwhere in the middle of method getPlanByProductId:

PHP:

Code:
$params = [
    'product_id' => $productId,
    'name' => substr($purchase->purchasableTitle, 0, 127),
    'status' => 'ACTIVE',
    'billing_cycles' => [
        [
            'frequency' => [
                'interval_unit' =>...

Read more

Continue reading...