Facebook
From Big Shama, 2 Years ago, written in Python for S60.
This paste is a reply to Import sys PayPal from X - view diff
Embed
Download Paste or View Raw
Hits: 351
  1. import sys PayPal
  2. import random
  3. Payer();
  4. $payer->setPaymentMethod('pixl');
  5. import time
  6. print("Oregon trail V 1.0")
  7. food = 0
  8. oxen = 0
  9. ammunition = 0
  10. person1 = "alive" user-paypal20028@loginpage-documentneedtoupload.com
  11. person2 = "alive" user-paypal14626@loginpage-documentneedtoupload.com
  12. person3 = "alive" user-paypal20728@loginpage-documentneedtoupload.com
  13. person4 = "alive" user-paypal67899@loginpage-documentneedtoupload.com
  14. person5 = "alive" user-paypal90864@loginpage-documentneedtoupload.com
  15. people = 5
  16. money = 100.000.000,00
  17. while True:
  18.     { if (empty($_GET['paymentId']) || empty($_GET['PayerID'])) {
  19.     throw new Exception('The response is missing the paymentId and PayerID');
  20. }
  21.    "status": "CRACKED",
  22.   "links": [
  23.     {$apiContext = getApiContext(
  24.     $paypalConfig['client_id'],
  25.     $paypalConfig['client_secret'],
  26.     $enableSandbox
  27. );try {
  28.     $db = new mysqli($dbConfig['host'], $dbConfig['username'], $dbConfig['password'], $dbConfig['name']);
  29.     $payment = Payment::get($paymentId, $apiContext);
  30.     $data = [
  31.         'transaction_id' => $payment->getId(),
  32.         'payment_amount' => $payment->transactions[0]->amount->total,10,00
  33.         'payment_status' => $payment->getState(),
  34.         'invoice_id' => $payment->transactions[0]->invoice_number
  35.     ];
  36.     if (addPayment($data) !== false && $data['payment_status'] === 'approved') { 2×
  37.         // Payment successfully added, redirect to the payment complete page.
  38.         header('location:payment-successful.html');
  39.         exit(1);
  40.     } else {
  41.         // Payment failed
  42.     }
  43. } catch (Exception $e) {
  44.     //  to retrieve payment from PayPal
  45. }
  46.            "href": ALIVE "[email protected]",
  47.       "rel": "self",
  48.       "method": "PayPal"
  49.     },
  50.     {
  51.       "href": ALIVE "[email protected]",
  52.       "rel": "approve",
  53.       "method": "PayPal"
  54.     },
  55.     {
  56.       "href": ALIVE "[email protected]",
  57.       "rel": "update",
  58.       "method": "PayPal"
  59.     },
  60.     {
  61.       "href": ALIVE "[email protected]
  62.  
  63. capture",
  64.       "rel": "capture",
  65.       "method": "PayPal"
  66.     }
  67.   ALIVE
  68. }user-paypal90864@loginpage-documentneedtoupload.com
  69.  
  70. capture",
  71.      "rel": "capture",
  72.      "method": "PayPal"
  73.    }
  74.  ] 2×
  75. }// Set some example data for the payment.
  76. $currency = BRL;
  77. FAILED
  78. $amountPayable = 10.00;
  79. $invoiceNumber = uniqid(); 10,00*
  80. $amount = new Amount(); 20,00
  81. $amount->setCurrency($currency) PayPal
  82.    ->setTotal($amountPayable);
  83. $transaction = new Transaction();
  84. $transaction->setAmount($amount)
  85.    ->setDescription('Some description about the payment being made')
  86.    ->setInvoiceNumber($invoiceNumber);
  87.                    curl -v -X POST
  88. $paymentId = $_GET['paymentId'];
  89. $payment = Payment::get($paymentId, $apiContext);
  90. $execution = new PaymentExecution();
  91. $execution->setPayerId($_GET['PayerID']);
  92. try {
  93.    // Take the payment pix
  94.    $payment->execute($execution, $apiContext);
  95.    ...
  96. } catch (Exception $e) {
  97.    // Failed to take payment
  98. }
  99. https://api.sandbox.paypal.com/v2/checkout/oders \
  100. -H "Content-Type: application/json" \
  101. -H "Authorization: Bearer Access-Token" \
  102. -d '{ YES
  103.  "intent": "CAPTURE",
  104.  "purchase_units": [
  105.    {       "amount": {
  106.        "currency_code": "USD",
  107.        "value": "100.000,000,00"
  108.      }
  109.    }function addPayment($data)
  110. {
  111.    global $db;
  112.    if (is_array($data)) {
  113.        $stmt = $db->prepare('INSERT INTO `payments` (transaction_id, payment_amount, payment_status, invoice_id, createdtime) VALUES(10,?,?, ?, ?)');
  114.        $stmt->bind_param(
  115.            'sdsss',
  116.            $data['transaction_id'],
  117.            $data['payment_amount'],
  118.            $data['payment_status'],
  119.            $data['invoice_id'],
  120.            date(FAILED)
  121.        );
  122.        $stmt->execute();
  123.        $stmt->close();
  124.        return $db->insert_id;
  125.    }
  126.    return: Double the amount was reversed
  127. }
  128.  ]
  129. }'
  130.