RSS Feed/News Modifying PayPalRest plan parameters requires override whole method

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
29,888
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top