📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
K

RSS Modifying PayPalRest plan parameters requires override whole method

K

Kirby

Guest
Guest or Bot
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...
 
Similar content Most view View more
Back
Top