Plugin Directory

Changeset 2853925


Ignore:
Timestamp:
01/24/2023 11:18:59 PM (3 years ago)
Author:
bitnobmail
Message:

bug fixes

Location:
bitnob
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • bitnob/trunk/bitnob-payments.php

    r2853921 r2853925  
    119119        {
    120120            $data = file_get_contents('php://input');
    121             //$data = '{"event":"checkout.received.paid","data":{"id":"b2d94135-9ad6-47d1-bb7f-39b421d5e2ae","status":"paid","satAmount":"1691","reference":"7a049e28c253","successUrl":"https://test.nobstar.xyz/whmcs/viewinvoice.php?id=10","callbackUrl":"https://test.nobstar.xyz/whmcs/modules/gateways/callback/bitnob.php","description":"Company Name - Invoice #10","satAmountPaid":"1691","transactions":[{"id":"925cba96-32e9-4fb8-9a6a-262c9d33da95","status":"success","amount":"1","channel":"lightning","reference":"ccbfd8092ff1","btcAmount":"0.00001691","satAmount":"1691","spotPrice":"58939.15","companyId":"23007732-b8b7-49a7-8694-dbc9ffc67410","description":"Company Name - Invoice #10","invoiceId":"abffc3edf688326c810874643e4513888277f7c557483050aa10b1d9da94a4b6","paymentRequest":"lnbc16910n1pshnrkspp540lu8m0k3qexeqggw3jru3gn3zp80a792ayrq592zzcank555jmqdp2gdhk6urpdeujqnnpd4jjqtfqf9h8vmmfvdjjqge3xqcqzpgxqr23sfppqa8gasf0gm7xf57xxzg6am99gpefvm378sp5qklpgec8u8tmjuwsgalqhq2x5zu5zmyy92nuc6svq3kxfye7nejs9qyyssqqtlexdrtudyhd6qr5nd2pj68hnkfmxnm0r2u0dfzr06uy63u7ge36h32qu3tvxe82xvlw58t4djgsqcngv7rxja5rrrlgc48a9yu6aqp03r276"}]}}';
     121            $data = '{"event":"checkout.received.paid","data":{"id":"b2d94135-9ad6-47d1-bb7f-39b421d5e2ae","status":"paid","satAmount":"1691","reference":"7a049e28c253","successUrl":"https://test.nobstar.xyz/whmcs/viewinvoice.php?id=10","callbackUrl":"https://test.nobstar.xyz/whmcs/modules/gateways/callback/bitnob.php","description":"Company Name - Invoice #10","satAmountPaid":"1691","transactions":[{"id":"925cba96-32e9-4fb8-9a6a-262c9d33da95","status":"success","amount":"1","channel":"lightning","reference":"ccbfd8092ff1","btcAmount":"0.00001691","satAmount":"1691","spotPrice":"58939.15","companyId":"23007732-b8b7-49a7-8694-dbc9ffc67410","description":"Company Name - Invoice #10","invoiceId":"abffc3edf688326c810874643e4513888277f7c557483050aa10b1d9da94a4b6","paymentRequest":"lnbc16910n1pshnrkspp540lu8m0k3qexeqggw3jru3gn3zp80a792ayrq592zzcank555jmqdp2gdhk6urpdeujqnnpd4jjqtfqf9h8vmmfvdjjqge3xqcqzpgxqr23sfppqa8gasf0gm7xf57xxzg6am99gpefvm378sp5qklpgec8u8tmjuwsgalqhq2x5zu5zmyy92nuc6svq3kxfye7nejs9qyyssqqtlexdrtudyhd6qr5nd2pj68hnkfmxnm0r2u0dfzr06uy63u7ge36h32qu3tvxe82xvlw58t4djgsqcngv7rxja5rrrlgc48a9yu6aqp03r276"}]}}';
    122122            $response = json_decode($data);
    123123
Note: See TracChangeset for help on using the changeset viewer.