mercredi 7 juillet 2021

How to integrate payumoney in laravel?

$MERCHANT_KEY = ""; // add your id
  $SALT = ""; // add your id
  $PAYU_BASE_URL = "https://test.payu.in";
  $action = '';
  $txnid = substr(hash('sha256', mt_rand() . microtime()), 0, 20);
  $posted = array();
  $posted = array(
      'key' => $MERCHANT_KEY,
      'txnid' => $txnid,
      'amount' => $amount,
      'firstname' => $name,
      'email' => $email,
      'productinfo' => 'PHP Project Subscribe',
      'surl' => 'http://test.example.com/payment/payment-success/',
      'furl' => 'http://test.example.com/payment/payment-failed/',
      'service_provider' => 'payu_paisa',
  );

I want to integrate Payumoney in laravel form. Can anyone give me the code to integrate payumoney.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire