Plugin Directory

Changeset 2422016


Ignore:
Timestamp:
11/20/2020 04:39:30 AM (5 years ago)
Author:
nor1m
Message:

Mask phone

Location:
qr-payments-via-paypal/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • qr-payments-via-paypal/trunk/log.txt

    r2422010 r2422016  
    1 19.11.2020/17:20:13: 176.50.201.6: process_payment
    2 array (
    3   'order_id' => 17,
    4   'payment_link' => 'https://www.sandbox.paypal.com/invoice/p/#INV2-RR7F-V2T3-8TDX-PAKD',
    5   'redirect_link' => 'https://developertools.ru/qr-payments/?payment_link=https%3A%2F%2Fwww.sandbox.paypal.com%2Finvoice%2Fp%2F%23INV2-RR7F-V2T3-8TDX-PAKD&order_id=17',
    6 )
    7 19.11.2020/17:22:49: 173.0.82.126: webhook
    8 array (
    9   'verify' => 'SUCCESS',
    10 )
    11 19.11.2020/17:22:49: 173.0.82.126: verifyWebhook $webhook_event_arr
    12 array (
    13   '$webhook_event_arr' =>
    14   array (
    15     'id' => 'WH-4XV38852LU3871316-55A949529P200301D',
    16     'event_version' => '1.0',
    17     'create_time' => '2020-11-19T17:22:14.324Z',
    18     'resource_type' => 'invoices',
    19     'event_type' => 'INVOICING.INVOICE.PAID',
    20     'summary' => 'An invoice is paid, partially paid, or payment is made and is pending.',
    21     'resource' =>
    22     array (
    23       'invoice' =>
    24       array (
    25         'id' => 'INV2-RR7F-V2T3-8TDX-PAKD',
    26         'status' => 'PAID',
    27         'detail' =>
    28         array (
    29           'reference' => 'developertools.ru',
    30           'currency_code' => 'RUB',
    31           'note' => 'Спасибо за покупку!',
    32           'memo' => 'Это долгий контракт',
    33           'category_code' => 'SHIPPABLE',
    34           'invoice_number' => '17',
    35           'invoice_date' => '2020-11-19',
    36           'viewed_by_recipient' => false,
    37           'metadata' =>
    38           array (
    39             'create_time' => '2020-11-19T17:20:10Z',
    40             'last_update_time' => '2020-11-19T17:21:48Z',
    41             'first_sent_time' => '2020-11-19T17:20:13Z',
    42             'last_sent_time' => '2020-11-19T17:20:13Z',
    43             'created_by_flow' => 'REGULAR_SINGLE',
    44             'recipient_view_url' => 'https://www.sandbox.paypal.com/invoice/p/#RR7FV2T38TDXPAKD',
    45             'invoicer_view_url' => 'https://www.sandbox.paypal.com/invoice/details/INV2-RR7F-V2T3-8TDX-PAKD',
    46           ),
    47           'archived' => false,
    48         ),
    49         'invoicer' =>
    50         array (
    51           'name' =>
    52           array (
    53             'given_name' => 'QR Market',
    54             'full_name' => 'QR Market',
    55           ),
    56           'address' =>
    57           array (
    58             'address_line_1' => '1923 McDonald Ave',
    59             'address_line_2' => '#22',
    60             'admin_area_2' => 'Brooklyn',
    61             'admin_area_1' => 'NY',
    62             'postal_code' => '11223',
    63             'country_code' => 'US',
    64           ),
    65           'email_address' => '[email protected]',
    66           'phones' =>
    67           array (
    68             0 =>
    69             array (
    70               'country_code' => '1',
    71               'national_number' => '6469188488',
    72               'phone_type' => 'MOBILE',
    73             ),
    74           ),
    75           'website' => 'http://developertools.ru',
    76         ),
    77         'primary_recipients' =>
    78         array (
    79           0 =>
    80           array (
    81             'billing_info' =>
    82             array (
    83               'name' =>
    84               array (
    85                 'given_name' => 'Виталий',
    86                 'surname' => 'Миронов',
    87                 'full_name' => 'Виталий Миронов',
    88               ),
    89               'address' =>
    90               array (
    91                 'address_line_1' => 'Советская 7/1',
    92                 'admin_area_2' => 'Горно-Алтайск',
    93                 'admin_area_1' => 'Республика Алтай',
    94                 'postal_code' => '649000',
    95                 'country_code' => 'RU',
    96               ),
    97               'email_address' => '[email protected]',
    98               'phones' =>
    99               array (
    100                 0 =>
    101                 array (
    102                   'country_code' => '7',
    103                   'national_number' => '9618938264',
    104                   'phone_type' => 'MOBILE',
    105                 ),
    106               ),
    107             ),
    108             'shipping_info' =>
    109             array (
    110               'name' =>
    111               array (
    112                 'given_name' => 'Виталий',
    113                 'surname' => 'Миронов',
    114                 'full_name' => 'Виталий Миронов',
    115               ),
    116               'address' =>
    117               array (
    118                 'address_line_1' => 'Советская 7/1',
    119                 'admin_area_2' => 'Горно-Алтайск',
    120                 'admin_area_1' => 'Республика Алтай',
    121                 'postal_code' => '649000',
    122                 'country_code' => 'RU',
    123               ),
    124             ),
    125           ),
    126         ),
    127         'items' =>
    128         array (
    129           0 =>
    130           array (
    131             'id' => 'ITEM-115639742G700481J',
    132             'name' => 'Книга 1',
    133             'quantity' => '2',
    134             'unit_amount' =>
    135             array (
    136               'currency_code' => 'RUB',
    137               'value' => '50.00',
    138             ),
    139             'discount' =>
    140             array (
    141               'amount' =>
    142               array (
    143                 'currency_code' => 'RUB',
    144                 'value' => '0.00',
    145               ),
    146             ),
    147             'unit_of_measure' => 'QUANTITY',
    148           ),
    149         ),
    150         'configuration' =>
    151         array (
    152           'tax_calculated_after_discount' => false,
    153           'tax_inclusive' => false,
    154           'allow_tip' => true,
    155           'template_id' => 'TEMP-268217337T270740Y',
    156         ),
    157         'amount' =>
    158         array (
    159           'breakdown' =>
    160           array (
    161             'item_total' =>
    162             array (
    163               'currency_code' => 'RUB',
    164               'value' => '100.00',
    165             ),
    166             'discount' =>
    167             array (
    168               'invoice_discount' =>
    169               array (
    170                 'amount' =>
    171                 array (
    172                   'currency_code' => 'RUB',
    173                   'value' => '0.00',
    174                 ),
    175               ),
    176               'item_discount' =>
    177               array (
    178                 'currency_code' => 'RUB',
    179                 'value' => '0.00',
    180               ),
    181             ),
    182             'tax_total' =>
    183             array (
    184               'currency_code' => 'RUB',
    185               'value' => '0.00',
    186             ),
    187             'shipping' =>
    188             array (
    189               'amount' =>
    190               array (
    191                 'currency_code' => 'RUB',
    192                 'value' => '0.00',
    193               ),
    194             ),
    195           ),
    196           'currency_code' => 'RUB',
    197           'value' => '100.00',
    198         ),
    199         'due_amount' =>
    200         array (
    201           'currency_code' => 'RUB',
    202           'value' => '0.00',
    203         ),
    204         'payments' =>
    205         array (
    206           'paid_amount' =>
    207           array (
    208             'currency_code' => 'RUB',
    209             'value' => '100.00',
    210           ),
    211           'transactions' =>
    212           array (
    213             0 =>
    214             array (
    215               'type' => 'PAYPAL',
    216               'payment_id' => '25M91272WP019072K',
    217               'transaction_type' => 'SALE',
    218               'payment_date' => '2020-11-19',
    219               'method' => 'PAYPAL',
    220               'amount' =>
    221               array (
    222                 'currency_code' => 'RUB',
    223                 'value' => '100.00',
    224               ),
    225             ),
    226           ),
    227         ),
    228         'links' =>
    229         array (
    230           0 =>
    231           array (
    232             'href' => 'https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-RR7F-V2T3-8TDX-PAKD',
    233             'rel' => 'self',
    234             'method' => 'GET',
    235           ),
    236         ),
    237       ),
    238     ),
    239     'links' =>
    240     array (
    241       0 =>
    242       array (
    243         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-4XV38852LU3871316-55A949529P200301D',
    244         'rel' => 'self',
    245         'method' => 'GET',
    246       ),
    247       1 =>
    248       array (
    249         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-4XV38852LU3871316-55A949529P200301D/resend',
    250         'rel' => 'resend',
    251         'method' => 'POST',
    252       ),
    253     ),
    254   ),
    255 )
    256 19.11.2020/17:22:49: 173.0.82.126: verifyWebhook
    257 array (
    258   'payment complete' => true,
    259 )
    260 19.11.2020/17:22:49: 173.0.82.126: webhook
    261 array (
    262   'verify' => 'SUCCESS',
    263 )
    264 19.11.2020/17:22:49: 173.0.82.126: verifyWebhook $webhook_event_arr
    265 array (
    266   '$webhook_event_arr' =>
    267   array (
    268     'id' => 'WH-9HN58803XB053270K-6W995148DW8472816',
    269     'event_version' => '1.0',
    270     'create_time' => '2020-11-19T17:22:13.117Z',
    271     'resource_type' => 'invoices',
    272     'event_type' => 'INVOICING.INVOICE.PAID',
    273     'summary' => 'An invoice is paid, partially paid, or payment is made and is pending.',
    274     'resource' =>
    275     array (
    276       'invoice' =>
    277       array (
    278         'id' => 'INV2-RR7F-V2T3-8TDX-PAKD',
    279         'status' => 'PAID',
    280         'detail' =>
    281         array (
    282           'reference' => 'developertools.ru',
    283           'currency_code' => 'RUB',
    284           'note' => 'Спасибо за покупку!',
    285           'memo' => 'Это долгий контракт',
    286           'category_code' => 'SHIPPABLE',
    287           'invoice_number' => '17',
    288           'invoice_date' => '2020-11-19',
    289           'viewed_by_recipient' => false,
    290           'metadata' =>
    291           array (
    292             'create_time' => '2020-11-19T17:20:10Z',
    293             'last_update_time' => '2020-11-19T17:21:48Z',
    294             'first_sent_time' => '2020-11-19T17:20:13Z',
    295             'last_sent_time' => '2020-11-19T17:20:13Z',
    296             'created_by_flow' => 'REGULAR_SINGLE',
    297             'recipient_view_url' => 'https://www.sandbox.paypal.com/invoice/p/#RR7FV2T38TDXPAKD',
    298             'invoicer_view_url' => 'https://www.sandbox.paypal.com/invoice/details/INV2-RR7F-V2T3-8TDX-PAKD',
    299           ),
    300           'archived' => false,
    301         ),
    302         'invoicer' =>
    303         array (
    304           'name' =>
    305           array (
    306             'given_name' => 'QR Market',
    307             'full_name' => 'QR Market',
    308           ),
    309           'address' =>
    310           array (
    311             'address_line_1' => '1923 McDonald Ave',
    312             'address_line_2' => '#22',
    313             'admin_area_2' => 'Brooklyn',
    314             'admin_area_1' => 'NY',
    315             'postal_code' => '11223',
    316             'country_code' => 'US',
    317           ),
    318           'email_address' => '[email protected]',
    319           'phones' =>
    320           array (
    321             0 =>
    322             array (
    323               'country_code' => '1',
    324               'national_number' => '6469188488',
    325               'phone_type' => 'MOBILE',
    326             ),
    327           ),
    328           'website' => 'http://developertools.ru',
    329         ),
    330         'primary_recipients' =>
    331         array (
    332           0 =>
    333           array (
    334             'billing_info' =>
    335             array (
    336               'name' =>
    337               array (
    338                 'given_name' => 'Виталий',
    339                 'surname' => 'Миронов',
    340                 'full_name' => 'Виталий Миронов',
    341               ),
    342               'address' =>
    343               array (
    344                 'address_line_1' => 'Советская 7/1',
    345                 'admin_area_2' => 'Горно-Алтайск',
    346                 'admin_area_1' => 'Республика Алтай',
    347                 'postal_code' => '649000',
    348                 'country_code' => 'RU',
    349               ),
    350               'email_address' => '[email protected]',
    351               'phones' =>
    352               array (
    353                 0 =>
    354                 array (
    355                   'country_code' => '7',
    356                   'national_number' => '9618938264',
    357                   'phone_type' => 'MOBILE',
    358                 ),
    359               ),
    360             ),
    361             'shipping_info' =>
    362             array (
    363               'name' =>
    364               array (
    365                 'given_name' => 'Виталий',
    366                 'surname' => 'Миронов',
    367                 'full_name' => 'Виталий Миронов',
    368               ),
    369               'address' =>
    370               array (
    371                 'address_line_1' => 'Советская 7/1',
    372                 'admin_area_2' => 'Горно-Алтайск',
    373                 'admin_area_1' => 'Республика Алтай',
    374                 'postal_code' => '649000',
    375                 'country_code' => 'RU',
    376               ),
    377             ),
    378           ),
    379         ),
    380         'items' =>
    381         array (
    382           0 =>
    383           array (
    384             'id' => 'ITEM-115639742G700481J',
    385             'name' => 'Книга 1',
    386             'quantity' => '2',
    387             'unit_amount' =>
    388             array (
    389               'currency_code' => 'RUB',
    390               'value' => '50.00',
    391             ),
    392             'discount' =>
    393             array (
    394               'amount' =>
    395               array (
    396                 'currency_code' => 'RUB',
    397                 'value' => '0.00',
    398               ),
    399             ),
    400             'unit_of_measure' => 'QUANTITY',
    401           ),
    402         ),
    403         'configuration' =>
    404         array (
    405           'tax_calculated_after_discount' => false,
    406           'tax_inclusive' => false,
    407           'allow_tip' => true,
    408           'template_id' => 'TEMP-268217337T270740Y',
    409         ),
    410         'amount' =>
    411         array (
    412           'breakdown' =>
    413           array (
    414             'item_total' =>
    415             array (
    416               'currency_code' => 'RUB',
    417               'value' => '100.00',
    418             ),
    419             'discount' =>
    420             array (
    421               'invoice_discount' =>
    422               array (
    423                 'amount' =>
    424                 array (
    425                   'currency_code' => 'RUB',
    426                   'value' => '0.00',
    427                 ),
    428               ),
    429               'item_discount' =>
    430               array (
    431                 'currency_code' => 'RUB',
    432                 'value' => '0.00',
    433               ),
    434             ),
    435             'tax_total' =>
    436             array (
    437               'currency_code' => 'RUB',
    438               'value' => '0.00',
    439             ),
    440             'shipping' =>
    441             array (
    442               'amount' =>
    443               array (
    444                 'currency_code' => 'RUB',
    445                 'value' => '0.00',
    446               ),
    447             ),
    448           ),
    449           'currency_code' => 'RUB',
    450           'value' => '100.00',
    451         ),
    452         'due_amount' =>
    453         array (
    454           'currency_code' => 'RUB',
    455           'value' => '0.00',
    456         ),
    457         'payments' =>
    458         array (
    459           'paid_amount' =>
    460           array (
    461             'currency_code' => 'RUB',
    462             'value' => '100.00',
    463           ),
    464           'transactions' =>
    465           array (
    466             0 =>
    467             array (
    468               'type' => 'PAYPAL',
    469               'payment_id' => '25M91272WP019072K',
    470               'transaction_type' => 'SALE',
    471               'payment_date' => '2020-11-19',
    472               'method' => 'PAYPAL',
    473               'amount' =>
    474               array (
    475                 'currency_code' => 'RUB',
    476                 'value' => '100.00',
    477               ),
    478             ),
    479           ),
    480         ),
    481         'links' =>
    482         array (
    483           0 =>
    484           array (
    485             'href' => 'https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-RR7F-V2T3-8TDX-PAKD',
    486             'rel' => 'self',
    487             'method' => 'GET',
    488           ),
    489         ),
    490       ),
    491     ),
    492     'links' =>
    493     array (
    494       0 =>
    495       array (
    496         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-9HN58803XB053270K-6W995148DW8472816',
    497         'rel' => 'self',
    498         'method' => 'GET',
    499       ),
    500       1 =>
    501       array (
    502         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-9HN58803XB053270K-6W995148DW8472816/resend',
    503         'rel' => 'resend',
    504         'method' => 'POST',
    505       ),
    506     ),
    507   ),
    508 )
    509 19.11.2020/17:22:51: 173.0.82.126: webhook
    510 array (
    511   'verify' => 'SUCCESS',
    512 )
    513 19.11.2020/17:22:51: 173.0.82.126: verifyWebhook $webhook_event_arr
    514 array (
    515   '$webhook_event_arr' =>
    516   array (
    517     'id' => 'WH-9HN58803XB053270K-6W995148DW8472816',
    518     'event_version' => '1.0',
    519     'create_time' => '2020-11-19T17:22:13.117Z',
    520     'resource_type' => 'invoices',
    521     'event_type' => 'INVOICING.INVOICE.PAID',
    522     'summary' => 'An invoice is paid, partially paid, or payment is made and is pending.',
    523     'resource' =>
    524     array (
    525       'invoice' =>
    526       array (
    527         'id' => 'INV2-RR7F-V2T3-8TDX-PAKD',
    528         'status' => 'PAID',
    529         'detail' =>
    530         array (
    531           'reference' => 'developertools.ru',
    532           'currency_code' => 'RUB',
    533           'note' => 'Спасибо за покупку!',
    534           'memo' => 'Это долгий контракт',
    535           'category_code' => 'SHIPPABLE',
    536           'invoice_number' => '17',
    537           'invoice_date' => '2020-11-19',
    538           'viewed_by_recipient' => false,
    539           'metadata' =>
    540           array (
    541             'create_time' => '2020-11-19T17:20:10Z',
    542             'last_update_time' => '2020-11-19T17:21:48Z',
    543             'first_sent_time' => '2020-11-19T17:20:13Z',
    544             'last_sent_time' => '2020-11-19T17:20:13Z',
    545             'created_by_flow' => 'REGULAR_SINGLE',
    546             'recipient_view_url' => 'https://www.sandbox.paypal.com/invoice/p/#RR7FV2T38TDXPAKD',
    547             'invoicer_view_url' => 'https://www.sandbox.paypal.com/invoice/details/INV2-RR7F-V2T3-8TDX-PAKD',
    548           ),
    549           'archived' => false,
    550         ),
    551         'invoicer' =>
    552         array (
    553           'name' =>
    554           array (
    555             'given_name' => 'QR Market',
    556             'full_name' => 'QR Market',
    557           ),
    558           'address' =>
    559           array (
    560             'address_line_1' => '1923 McDonald Ave',
    561             'address_line_2' => '#22',
    562             'admin_area_2' => 'Brooklyn',
    563             'admin_area_1' => 'NY',
    564             'postal_code' => '11223',
    565             'country_code' => 'US',
    566           ),
    567           'email_address' => '[email protected]',
    568           'phones' =>
    569           array (
    570             0 =>
    571             array (
    572               'country_code' => '1',
    573               'national_number' => '6469188488',
    574               'phone_type' => 'MOBILE',
    575             ),
    576           ),
    577           'website' => 'http://developertools.ru',
    578         ),
    579         'primary_recipients' =>
    580         array (
    581           0 =>
    582           array (
    583             'billing_info' =>
    584             array (
    585               'name' =>
    586               array (
    587                 'given_name' => 'Виталий',
    588                 'surname' => 'Миронов',
    589                 'full_name' => 'Виталий Миронов',
    590               ),
    591               'address' =>
    592               array (
    593                 'address_line_1' => 'Советская 7/1',
    594                 'admin_area_2' => 'Горно-Алтайск',
    595                 'admin_area_1' => 'Республика Алтай',
    596                 'postal_code' => '649000',
    597                 'country_code' => 'RU',
    598               ),
    599               'email_address' => '[email protected]',
    600               'phones' =>
    601               array (
    602                 0 =>
    603                 array (
    604                   'country_code' => '7',
    605                   'national_number' => '9618938264',
    606                   'phone_type' => 'MOBILE',
    607                 ),
    608               ),
    609             ),
    610             'shipping_info' =>
    611             array (
    612               'name' =>
    613               array (
    614                 'given_name' => 'Виталий',
    615                 'surname' => 'Миронов',
    616                 'full_name' => 'Виталий Миронов',
    617               ),
    618               'address' =>
    619               array (
    620                 'address_line_1' => 'Советская 7/1',
    621                 'admin_area_2' => 'Горно-Алтайск',
    622                 'admin_area_1' => 'Республика Алтай',
    623                 'postal_code' => '649000',
    624                 'country_code' => 'RU',
    625               ),
    626             ),
    627           ),
    628         ),
    629         'items' =>
    630         array (
    631           0 =>
    632           array (
    633             'id' => 'ITEM-115639742G700481J',
    634             'name' => 'Книга 1',
    635             'quantity' => '2',
    636             'unit_amount' =>
    637             array (
    638               'currency_code' => 'RUB',
    639               'value' => '50.00',
    640             ),
    641             'discount' =>
    642             array (
    643               'amount' =>
    644               array (
    645                 'currency_code' => 'RUB',
    646                 'value' => '0.00',
    647               ),
    648             ),
    649             'unit_of_measure' => 'QUANTITY',
    650           ),
    651         ),
    652         'configuration' =>
    653         array (
    654           'tax_calculated_after_discount' => false,
    655           'tax_inclusive' => false,
    656           'allow_tip' => true,
    657           'template_id' => 'TEMP-268217337T270740Y',
    658         ),
    659         'amount' =>
    660         array (
    661           'breakdown' =>
    662           array (
    663             'item_total' =>
    664             array (
    665               'currency_code' => 'RUB',
    666               'value' => '100.00',
    667             ),
    668             'discount' =>
    669             array (
    670               'invoice_discount' =>
    671               array (
    672                 'amount' =>
    673                 array (
    674                   'currency_code' => 'RUB',
    675                   'value' => '0.00',
    676                 ),
    677               ),
    678               'item_discount' =>
    679               array (
    680                 'currency_code' => 'RUB',
    681                 'value' => '0.00',
    682               ),
    683             ),
    684             'tax_total' =>
    685             array (
    686               'currency_code' => 'RUB',
    687               'value' => '0.00',
    688             ),
    689             'shipping' =>
    690             array (
    691               'amount' =>
    692               array (
    693                 'currency_code' => 'RUB',
    694                 'value' => '0.00',
    695               ),
    696             ),
    697           ),
    698           'currency_code' => 'RUB',
    699           'value' => '100.00',
    700         ),
    701         'due_amount' =>
    702         array (
    703           'currency_code' => 'RUB',
    704           'value' => '0.00',
    705         ),
    706         'payments' =>
    707         array (
    708           'paid_amount' =>
    709           array (
    710             'currency_code' => 'RUB',
    711             'value' => '100.00',
    712           ),
    713           'transactions' =>
    714           array (
    715             0 =>
    716             array (
    717               'type' => 'PAYPAL',
    718               'payment_id' => '25M91272WP019072K',
    719               'transaction_type' => 'SALE',
    720               'payment_date' => '2020-11-19',
    721               'method' => 'PAYPAL',
    722               'amount' =>
    723               array (
    724                 'currency_code' => 'RUB',
    725                 'value' => '100.00',
    726               ),
    727             ),
    728           ),
    729         ),
    730         'links' =>
    731         array (
    732           0 =>
    733           array (
    734             'href' => 'https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-RR7F-V2T3-8TDX-PAKD',
    735             'rel' => 'self',
    736             'method' => 'GET',
    737           ),
    738         ),
    739       ),
    740     ),
    741     'links' =>
    742     array (
    743       0 =>
    744       array (
    745         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-9HN58803XB053270K-6W995148DW8472816',
    746         'rel' => 'self',
    747         'method' => 'GET',
    748       ),
    749       1 =>
    750       array (
    751         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-9HN58803XB053270K-6W995148DW8472816/resend',
    752         'rel' => 'resend',
    753         'method' => 'POST',
    754       ),
    755     ),
    756   ),
    757 )
    758 19.11.2020/17:22:52: 173.0.82.126: webhook
    759 array (
    760   'verify' => 'SUCCESS',
    761 )
    762 19.11.2020/17:22:52: 173.0.82.126: verifyWebhook $webhook_event_arr
    763 array (
    764   '$webhook_event_arr' =>
    765   array (
    766     'id' => 'WH-4XV38852LU3871316-55A949529P200301D',
    767     'event_version' => '1.0',
    768     'create_time' => '2020-11-19T17:22:14.324Z',
    769     'resource_type' => 'invoices',
    770     'event_type' => 'INVOICING.INVOICE.PAID',
    771     'summary' => 'An invoice is paid, partially paid, or payment is made and is pending.',
    772     'resource' =>
    773     array (
    774       'invoice' =>
    775       array (
    776         'id' => 'INV2-RR7F-V2T3-8TDX-PAKD',
    777         'status' => 'PAID',
    778         'detail' =>
    779         array (
    780           'reference' => 'developertools.ru',
    781           'currency_code' => 'RUB',
    782           'note' => 'Спасибо за покупку!',
    783           'memo' => 'Это долгий контракт',
    784           'category_code' => 'SHIPPABLE',
    785           'invoice_number' => '17',
    786           'invoice_date' => '2020-11-19',
    787           'viewed_by_recipient' => false,
    788           'metadata' =>
    789           array (
    790             'create_time' => '2020-11-19T17:20:10Z',
    791             'last_update_time' => '2020-11-19T17:21:48Z',
    792             'first_sent_time' => '2020-11-19T17:20:13Z',
    793             'last_sent_time' => '2020-11-19T17:20:13Z',
    794             'created_by_flow' => 'REGULAR_SINGLE',
    795             'recipient_view_url' => 'https://www.sandbox.paypal.com/invoice/p/#RR7FV2T38TDXPAKD',
    796             'invoicer_view_url' => 'https://www.sandbox.paypal.com/invoice/details/INV2-RR7F-V2T3-8TDX-PAKD',
    797           ),
    798           'archived' => false,
    799         ),
    800         'invoicer' =>
    801         array (
    802           'name' =>
    803           array (
    804             'given_name' => 'QR Market',
    805             'full_name' => 'QR Market',
    806           ),
    807           'address' =>
    808           array (
    809             'address_line_1' => '1923 McDonald Ave',
    810             'address_line_2' => '#22',
    811             'admin_area_2' => 'Brooklyn',
    812             'admin_area_1' => 'NY',
    813             'postal_code' => '11223',
    814             'country_code' => 'US',
    815           ),
    816           'email_address' => '[email protected]',
    817           'phones' =>
    818           array (
    819             0 =>
    820             array (
    821               'country_code' => '1',
    822               'national_number' => '6469188488',
    823               'phone_type' => 'MOBILE',
    824             ),
    825           ),
    826           'website' => 'http://developertools.ru',
    827         ),
    828         'primary_recipients' =>
    829         array (
    830           0 =>
    831           array (
    832             'billing_info' =>
    833             array (
    834               'name' =>
    835               array (
    836                 'given_name' => 'Виталий',
    837                 'surname' => 'Миронов',
    838                 'full_name' => 'Виталий Миронов',
    839               ),
    840               'address' =>
    841               array (
    842                 'address_line_1' => 'Советская 7/1',
    843                 'admin_area_2' => 'Горно-Алтайск',
    844                 'admin_area_1' => 'Республика Алтай',
    845                 'postal_code' => '649000',
    846                 'country_code' => 'RU',
    847               ),
    848               'email_address' => '[email protected]',
    849               'phones' =>
    850               array (
    851                 0 =>
    852                 array (
    853                   'country_code' => '7',
    854                   'national_number' => '9618938264',
    855                   'phone_type' => 'MOBILE',
    856                 ),
    857               ),
    858             ),
    859             'shipping_info' =>
    860             array (
    861               'name' =>
    862               array (
    863                 'given_name' => 'Виталий',
    864                 'surname' => 'Миронов',
    865                 'full_name' => 'Виталий Миронов',
    866               ),
    867               'address' =>
    868               array (
    869                 'address_line_1' => 'Советская 7/1',
    870                 'admin_area_2' => 'Горно-Алтайск',
    871                 'admin_area_1' => 'Республика Алтай',
    872                 'postal_code' => '649000',
    873                 'country_code' => 'RU',
    874               ),
    875             ),
    876           ),
    877         ),
    878         'items' =>
    879         array (
    880           0 =>
    881           array (
    882             'id' => 'ITEM-115639742G700481J',
    883             'name' => 'Книга 1',
    884             'quantity' => '2',
    885             'unit_amount' =>
    886             array (
    887               'currency_code' => 'RUB',
    888               'value' => '50.00',
    889             ),
    890             'discount' =>
    891             array (
    892               'amount' =>
    893               array (
    894                 'currency_code' => 'RUB',
    895                 'value' => '0.00',
    896               ),
    897             ),
    898             'unit_of_measure' => 'QUANTITY',
    899           ),
    900         ),
    901         'configuration' =>
    902         array (
    903           'tax_calculated_after_discount' => false,
    904           'tax_inclusive' => false,
    905           'allow_tip' => true,
    906           'template_id' => 'TEMP-268217337T270740Y',
    907         ),
    908         'amount' =>
    909         array (
    910           'breakdown' =>
    911           array (
    912             'item_total' =>
    913             array (
    914               'currency_code' => 'RUB',
    915               'value' => '100.00',
    916             ),
    917             'discount' =>
    918             array (
    919               'invoice_discount' =>
    920               array (
    921                 'amount' =>
    922                 array (
    923                   'currency_code' => 'RUB',
    924                   'value' => '0.00',
    925                 ),
    926               ),
    927               'item_discount' =>
    928               array (
    929                 'currency_code' => 'RUB',
    930                 'value' => '0.00',
    931               ),
    932             ),
    933             'tax_total' =>
    934             array (
    935               'currency_code' => 'RUB',
    936               'value' => '0.00',
    937             ),
    938             'shipping' =>
    939             array (
    940               'amount' =>
    941               array (
    942                 'currency_code' => 'RUB',
    943                 'value' => '0.00',
    944               ),
    945             ),
    946           ),
    947           'currency_code' => 'RUB',
    948           'value' => '100.00',
    949         ),
    950         'due_amount' =>
    951         array (
    952           'currency_code' => 'RUB',
    953           'value' => '0.00',
    954         ),
    955         'payments' =>
    956         array (
    957           'paid_amount' =>
    958           array (
    959             'currency_code' => 'RUB',
    960             'value' => '100.00',
    961           ),
    962           'transactions' =>
    963           array (
    964             0 =>
    965             array (
    966               'type' => 'PAYPAL',
    967               'payment_id' => '25M91272WP019072K',
    968               'transaction_type' => 'SALE',
    969               'payment_date' => '2020-11-19',
    970               'method' => 'PAYPAL',
    971               'amount' =>
    972               array (
    973                 'currency_code' => 'RUB',
    974                 'value' => '100.00',
    975               ),
    976             ),
    977           ),
    978         ),
    979         'links' =>
    980         array (
    981           0 =>
    982           array (
    983             'href' => 'https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-RR7F-V2T3-8TDX-PAKD',
    984             'rel' => 'self',
    985             'method' => 'GET',
    986           ),
    987         ),
    988       ),
    989     ),
    990     'links' =>
    991     array (
    992       0 =>
    993       array (
    994         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-4XV38852LU3871316-55A949529P200301D',
    995         'rel' => 'self',
    996         'method' => 'GET',
    997       ),
    998       1 =>
    999       array (
    1000         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-4XV38852LU3871316-55A949529P200301D/resend',
    1001         'rel' => 'resend',
    1002         'method' => 'POST',
    1003       ),
    1004     ),
    1005   ),
    1006 )
    1007 19.11.2020/17:51:58: 176.50.201.6: process_payment
    1008 array (
    1009   'order_id' => 18,
    1010   'payment_link' => 'https://www.sandbox.paypal.com/invoice/p/#INV2-24QE-TCBG-H38Q-9REQ',
    1011   'redirect_link' => 'https://developertools.ru/qr-payments/?payment_link=https%3A%2F%2Fwww.sandbox.paypal.com%2Finvoice%2Fp%2F%23INV2-24QE-TCBG-H38Q-9REQ&order_id=18',
    1012 )
    1013 19.11.2020/17:54:00: 173.0.82.126: webhook
    1014 array (
    1015   'verify' => 'SUCCESS',
    1016 )
    1017 19.11.2020/17:54:02: 173.0.82.126: webhook
    1018 array (
    1019   'verify' => 'SUCCESS',
    1020 )
    1021 19.11.2020/17:54:20: 173.0.82.126: webhook
    1022 array (
    1023   'verify' => 'SUCCESS',
    1024 )
    1025 19.11.2020/17:54:22: 173.0.82.126: webhook
    1026 array (
    1027   'verify' => 'SUCCESS',
    1028 )
    1029 19.11.2020/17:55:19: 173.0.82.126: webhook
    1030 array (
    1031   'verify' => 'SUCCESS',
    1032 )
    1033 19.11.2020/17:55:19: 173.0.82.126: verifyWebhook $webhook_event_arr
    1034 array (
    1035   '$webhook_event_arr' =>
    1036   array (
    1037     'id' => 'WH-07Y21557UB2599530-0Y641784UM611853R',
    1038     'event_version' => '1.0',
    1039     'create_time' => '2020-11-19T17:54:43.136Z',
    1040     'resource_type' => 'invoices',
    1041     'event_type' => 'INVOICING.INVOICE.PAID',
    1042     'summary' => 'An invoice is paid, partially paid, or payment is made and is pending.',
    1043     'resource' =>
    1044     array (
    1045       'invoice' =>
    1046       array (
    1047         'id' => 'INV2-24QE-TCBG-H38Q-9REQ',
    1048         'status' => 'PAID',
    1049         'detail' =>
    1050         array (
    1051           'reference' => 'developertools.ru',
    1052           'currency_code' => 'RUB',
    1053           'note' => 'Спасибо за покупку!',
    1054           'memo' => 'Это долгий контракт',
    1055           'category_code' => 'SHIPPABLE',
    1056           'invoice_number' => '18',
    1057           'invoice_date' => '2020-11-19',
    1058           'viewed_by_recipient' => false,
    1059           'metadata' =>
    1060           array (
    1061             'create_time' => '2020-11-19T17:51:56Z',
    1062             'last_update_time' => '2020-11-19T17:54:03Z',
    1063             'first_sent_time' => '2020-11-19T17:51:58Z',
    1064             'last_sent_time' => '2020-11-19T17:51:58Z',
    1065             'created_by_flow' => 'REGULAR_SINGLE',
    1066             'recipient_view_url' => 'https://www.sandbox.paypal.com/invoice/p/#24QETCBGH38Q9REQ',
    1067             'invoicer_view_url' => 'https://www.sandbox.paypal.com/invoice/details/INV2-24QE-TCBG-H38Q-9REQ',
    1068           ),
    1069           'archived' => false,
    1070         ),
    1071         'invoicer' =>
    1072         array (
    1073           'name' =>
    1074           array (
    1075             'given_name' => 'QR Market',
    1076             'full_name' => 'QR Market',
    1077           ),
    1078           'address' =>
    1079           array (
    1080             'address_line_1' => '1923 McDonald Ave',
    1081             'address_line_2' => '#22',
    1082             'admin_area_2' => 'Brooklyn',
    1083             'admin_area_1' => 'NY',
    1084             'postal_code' => '11223',
    1085             'country_code' => 'US',
    1086           ),
    1087           'email_address' => '[email protected]',
    1088           'phones' =>
    1089           array (
    1090             0 =>
    1091             array (
    1092               'country_code' => '1',
    1093               'national_number' => '6469188488',
    1094               'phone_type' => 'MOBILE',
    1095             ),
    1096           ),
    1097           'website' => 'http://developertools.ru',
    1098         ),
    1099         'primary_recipients' =>
    1100         array (
    1101           0 =>
    1102           array (
    1103             'billing_info' =>
    1104             array (
    1105               'name' =>
    1106               array (
    1107                 'given_name' => 'Виталий',
    1108                 'surname' => 'Миронов',
    1109                 'full_name' => 'Виталий Миронов',
    1110               ),
    1111               'address' =>
    1112               array (
    1113                 'address_line_1' => 'Советская 7/1',
    1114                 'admin_area_2' => 'Горно-Алтайск',
    1115                 'admin_area_1' => 'Республика Алтай',
    1116                 'postal_code' => '649000',
    1117                 'country_code' => 'RU',
    1118               ),
    1119               'email_address' => '[email protected]',
    1120               'phones' =>
    1121               array (
    1122                 0 =>
    1123                 array (
    1124                   'country_code' => '7',
    1125                   'national_number' => '9618938264',
    1126                   'phone_type' => 'MOBILE',
    1127                 ),
    1128               ),
    1129             ),
    1130             'shipping_info' =>
    1131             array (
    1132               'name' =>
    1133               array (
    1134                 'given_name' => 'Виталий',
    1135                 'surname' => 'Миронов',
    1136                 'full_name' => 'Виталий Миронов',
    1137               ),
    1138               'address' =>
    1139               array (
    1140                 'address_line_1' => 'Советская 7/1',
    1141                 'admin_area_2' => 'Горно-Алтайск',
    1142                 'admin_area_1' => 'Республика Алтай',
    1143                 'postal_code' => '649000',
    1144                 'country_code' => 'RU',
    1145               ),
    1146             ),
    1147           ),
    1148         ),
    1149         'items' =>
    1150         array (
    1151           0 =>
    1152           array (
    1153             'id' => 'ITEM-87F3930359177932C',
    1154             'name' => 'Книга 1',
    1155             'quantity' => '1',
    1156             'unit_amount' =>
    1157             array (
    1158               'currency_code' => 'RUB',
    1159               'value' => '50.00',
    1160             ),
    1161             'discount' =>
    1162             array (
    1163               'amount' =>
    1164               array (
    1165                 'currency_code' => 'RUB',
    1166                 'value' => '0.00',
    1167               ),
    1168             ),
    1169             'unit_of_measure' => 'QUANTITY',
    1170           ),
    1171         ),
    1172         'configuration' =>
    1173         array (
    1174           'tax_calculated_after_discount' => false,
    1175           'tax_inclusive' => false,
    1176           'allow_tip' => true,
    1177           'template_id' => 'TEMP-268217337T270740Y',
    1178         ),
    1179         'amount' =>
    1180         array (
    1181           'breakdown' =>
    1182           array (
    1183             'item_total' =>
    1184             array (
    1185               'currency_code' => 'RUB',
    1186               'value' => '50.00',
    1187             ),
    1188             'discount' =>
    1189             array (
    1190               'invoice_discount' =>
    1191               array (
    1192                 'amount' =>
    1193                 array (
    1194                   'currency_code' => 'RUB',
    1195                   'value' => '0.00',
    1196                 ),
    1197               ),
    1198               'item_discount' =>
    1199               array (
    1200                 'currency_code' => 'RUB',
    1201                 'value' => '0.00',
    1202               ),
    1203             ),
    1204             'tax_total' =>
    1205             array (
    1206               'currency_code' => 'RUB',
    1207               'value' => '0.00',
    1208             ),
    1209             'shipping' =>
    1210             array (
    1211               'amount' =>
    1212               array (
    1213                 'currency_code' => 'RUB',
    1214                 'value' => '0.00',
    1215               ),
    1216             ),
    1217           ),
    1218           'currency_code' => 'RUB',
    1219           'value' => '50.00',
    1220         ),
    1221         'due_amount' =>
    1222         array (
    1223           'currency_code' => 'RUB',
    1224           'value' => '0.00',
    1225         ),
    1226         'payments' =>
    1227         array (
    1228           'paid_amount' =>
    1229           array (
    1230             'currency_code' => 'RUB',
    1231             'value' => '50.00',
    1232           ),
    1233           'transactions' =>
    1234           array (
    1235             0 =>
    1236             array (
    1237               'type' => 'PAYPAL',
    1238               'payment_id' => '2YG34053S3082632C',
    1239               'transaction_type' => 'SALE',
    1240               'payment_date' => '2020-11-19',
    1241               'method' => 'PAYPAL',
    1242               'amount' =>
    1243               array (
    1244                 'currency_code' => 'RUB',
    1245                 'value' => '50.00',
    1246               ),
    1247             ),
    1248           ),
    1249         ),
    1250         'links' =>
    1251         array (
    1252           0 =>
    1253           array (
    1254             'href' => 'https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-24QE-TCBG-H38Q-9REQ',
    1255             'rel' => 'self',
    1256             'method' => 'GET',
    1257           ),
    1258         ),
    1259       ),
    1260     ),
    1261     'links' =>
    1262     array (
    1263       0 =>
    1264       array (
    1265         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-07Y21557UB2599530-0Y641784UM611853R',
    1266         'rel' => 'self',
    1267         'method' => 'GET',
    1268       ),
    1269       1 =>
    1270       array (
    1271         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-07Y21557UB2599530-0Y641784UM611853R/resend',
    1272         'rel' => 'resend',
    1273         'method' => 'POST',
    1274       ),
    1275     ),
    1276   ),
    1277 )
    1278 19.11.2020/17:55:20: 173.0.82.126: verifyWebhook
    1279 array (
    1280   'payment complete' => true,
    1281 )
    1282 19.11.2020/17:55:22: 173.0.82.126: webhook
    1283 array (
    1284   'verify' => 'SUCCESS',
    1285 )
    1286 19.11.2020/17:55:22: 173.0.82.126: verifyWebhook $webhook_event_arr
    1287 array (
    1288   '$webhook_event_arr' =>
    1289   array (
    1290     'id' => 'WH-07Y21557UB2599530-0Y641784UM611853R',
    1291     'event_version' => '1.0',
    1292     'create_time' => '2020-11-19T17:54:43.136Z',
    1293     'resource_type' => 'invoices',
    1294     'event_type' => 'INVOICING.INVOICE.PAID',
    1295     'summary' => 'An invoice is paid, partially paid, or payment is made and is pending.',
    1296     'resource' =>
    1297     array (
    1298       'invoice' =>
    1299       array (
    1300         'id' => 'INV2-24QE-TCBG-H38Q-9REQ',
    1301         'status' => 'PAID',
    1302         'detail' =>
    1303         array (
    1304           'reference' => 'developertools.ru',
    1305           'currency_code' => 'RUB',
    1306           'note' => 'Спасибо за покупку!',
    1307           'memo' => 'Это долгий контракт',
    1308           'category_code' => 'SHIPPABLE',
    1309           'invoice_number' => '18',
    1310           'invoice_date' => '2020-11-19',
    1311           'viewed_by_recipient' => false,
    1312           'metadata' =>
    1313           array (
    1314             'create_time' => '2020-11-19T17:51:56Z',
    1315             'last_update_time' => '2020-11-19T17:54:03Z',
    1316             'first_sent_time' => '2020-11-19T17:51:58Z',
    1317             'last_sent_time' => '2020-11-19T17:51:58Z',
    1318             'created_by_flow' => 'REGULAR_SINGLE',
    1319             'recipient_view_url' => 'https://www.sandbox.paypal.com/invoice/p/#24QETCBGH38Q9REQ',
    1320             'invoicer_view_url' => 'https://www.sandbox.paypal.com/invoice/details/INV2-24QE-TCBG-H38Q-9REQ',
    1321           ),
    1322           'archived' => false,
    1323         ),
    1324         'invoicer' =>
    1325         array (
    1326           'name' =>
    1327           array (
    1328             'given_name' => 'QR Market',
    1329             'full_name' => 'QR Market',
    1330           ),
    1331           'address' =>
    1332           array (
    1333             'address_line_1' => '1923 McDonald Ave',
    1334             'address_line_2' => '#22',
    1335             'admin_area_2' => 'Brooklyn',
    1336             'admin_area_1' => 'NY',
    1337             'postal_code' => '11223',
    1338             'country_code' => 'US',
    1339           ),
    1340           'email_address' => '[email protected]',
    1341           'phones' =>
    1342           array (
    1343             0 =>
    1344             array (
    1345               'country_code' => '1',
    1346               'national_number' => '6469188488',
    1347               'phone_type' => 'MOBILE',
    1348             ),
    1349           ),
    1350           'website' => 'http://developertools.ru',
    1351         ),
    1352         'primary_recipients' =>
    1353         array (
    1354           0 =>
    1355           array (
    1356             'billing_info' =>
    1357             array (
    1358               'name' =>
    1359               array (
    1360                 'given_name' => 'Виталий',
    1361                 'surname' => 'Миронов',
    1362                 'full_name' => 'Виталий Миронов',
    1363               ),
    1364               'address' =>
    1365               array (
    1366                 'address_line_1' => 'Советская 7/1',
    1367                 'admin_area_2' => 'Горно-Алтайск',
    1368                 'admin_area_1' => 'Республика Алтай',
    1369                 'postal_code' => '649000',
    1370                 'country_code' => 'RU',
    1371               ),
    1372               'email_address' => '[email protected]',
    1373               'phones' =>
    1374               array (
    1375                 0 =>
    1376                 array (
    1377                   'country_code' => '7',
    1378                   'national_number' => '9618938264',
    1379                   'phone_type' => 'MOBILE',
    1380                 ),
    1381               ),
    1382             ),
    1383             'shipping_info' =>
    1384             array (
    1385               'name' =>
    1386               array (
    1387                 'given_name' => 'Виталий',
    1388                 'surname' => 'Миронов',
    1389                 'full_name' => 'Виталий Миронов',
    1390               ),
    1391               'address' =>
    1392               array (
    1393                 'address_line_1' => 'Советская 7/1',
    1394                 'admin_area_2' => 'Горно-Алтайск',
    1395                 'admin_area_1' => 'Республика Алтай',
    1396                 'postal_code' => '649000',
    1397                 'country_code' => 'RU',
    1398               ),
    1399             ),
    1400           ),
    1401         ),
    1402         'items' =>
    1403         array (
    1404           0 =>
    1405           array (
    1406             'id' => 'ITEM-87F3930359177932C',
    1407             'name' => 'Книга 1',
    1408             'quantity' => '1',
    1409             'unit_amount' =>
    1410             array (
    1411               'currency_code' => 'RUB',
    1412               'value' => '50.00',
    1413             ),
    1414             'discount' =>
    1415             array (
    1416               'amount' =>
    1417               array (
    1418                 'currency_code' => 'RUB',
    1419                 'value' => '0.00',
    1420               ),
    1421             ),
    1422             'unit_of_measure' => 'QUANTITY',
    1423           ),
    1424         ),
    1425         'configuration' =>
    1426         array (
    1427           'tax_calculated_after_discount' => false,
    1428           'tax_inclusive' => false,
    1429           'allow_tip' => true,
    1430           'template_id' => 'TEMP-268217337T270740Y',
    1431         ),
    1432         'amount' =>
    1433         array (
    1434           'breakdown' =>
    1435           array (
    1436             'item_total' =>
    1437             array (
    1438               'currency_code' => 'RUB',
    1439               'value' => '50.00',
    1440             ),
    1441             'discount' =>
    1442             array (
    1443               'invoice_discount' =>
    1444               array (
    1445                 'amount' =>
    1446                 array (
    1447                   'currency_code' => 'RUB',
    1448                   'value' => '0.00',
    1449                 ),
    1450               ),
    1451               'item_discount' =>
    1452               array (
    1453                 'currency_code' => 'RUB',
    1454                 'value' => '0.00',
    1455               ),
    1456             ),
    1457             'tax_total' =>
    1458             array (
    1459               'currency_code' => 'RUB',
    1460               'value' => '0.00',
    1461             ),
    1462             'shipping' =>
    1463             array (
    1464               'amount' =>
    1465               array (
    1466                 'currency_code' => 'RUB',
    1467                 'value' => '0.00',
    1468               ),
    1469             ),
    1470           ),
    1471           'currency_code' => 'RUB',
    1472           'value' => '50.00',
    1473         ),
    1474         'due_amount' =>
    1475         array (
    1476           'currency_code' => 'RUB',
    1477           'value' => '0.00',
    1478         ),
    1479         'payments' =>
    1480         array (
    1481           'paid_amount' =>
    1482           array (
    1483             'currency_code' => 'RUB',
    1484             'value' => '50.00',
    1485           ),
    1486           'transactions' =>
    1487           array (
    1488             0 =>
    1489             array (
    1490               'type' => 'PAYPAL',
    1491               'payment_id' => '2YG34053S3082632C',
    1492               'transaction_type' => 'SALE',
    1493               'payment_date' => '2020-11-19',
    1494               'method' => 'PAYPAL',
    1495               'amount' =>
    1496               array (
    1497                 'currency_code' => 'RUB',
    1498                 'value' => '50.00',
    1499               ),
    1500             ),
    1501           ),
    1502         ),
    1503         'links' =>
    1504         array (
    1505           0 =>
    1506           array (
    1507             'href' => 'https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-24QE-TCBG-H38Q-9REQ',
    1508             'rel' => 'self',
    1509             'method' => 'GET',
    1510           ),
    1511         ),
    1512       ),
    1513     ),
    1514     'links' =>
    1515     array (
    1516       0 =>
    1517       array (
    1518         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-07Y21557UB2599530-0Y641784UM611853R',
    1519         'rel' => 'self',
    1520         'method' => 'GET',
    1521       ),
    1522       1 =>
    1523       array (
    1524         'href' => 'https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-07Y21557UB2599530-0Y641784UM611853R/resend',
    1525         'rel' => 'resend',
    1526         'method' => 'POST',
    1527       ),
    1528     ),
    1529   ),
    1530 )
    1531 20.11.2020/03:50:16: 176.50.234.64: process_payment
    1532 array (
    1533   'order_id' => 19,
    1534   'payment_link' => 'https://www.sandbox.paypal.com/invoice/p/#INV2-K8N5-XN5M-6VWM-CRG6',
    1535   'redirect_link' => 'https://developertools.ru/qr-payments/?payment_link=https%3A%2F%2Fwww.sandbox.paypal.com%2Finvoice%2Fp%2F%23INV2-K8N5-XN5M-6VWM-CRG6&order_id=19',
    1536 )
  • qr-payments-via-paypal/trunk/nor1m-paypal-qr-payment.php

    r2422010 r2422016  
    55 * Author: Vitaly Mironov
    66 * Author URI: http://nor1m.ru
    7  * Version: 0.7
     7 * Version: 0.8
    88 */
    99
Note: See TracChangeset for help on using the changeset viewer.