We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6848c3 commit bdef45cCopy full SHA for bdef45c
Http/Controllers/Payment.php
@@ -23,7 +23,11 @@ public function show(Document $invoice, PaymentRequest $request)
23
24
$this->setContactFirstLastName($invoice);
25
26
- $setting['action'] = ($setting['mode'] == 'live') ? 'https://www.paypal.com/cgi-bin/webscr' : 'https://www.sandbox.paypal.com/cgi-bin/webscr';
+ $setting['action'] = 'https://www.paypal.com/cgi-bin/webscr';
27
+
28
+ if (isset($setting['mode']) && $setting['mode'] == 'sandbox') {
29
+ $setting['action'] = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
30
+ }
31
32
$invoice_url = $this->getInvoiceUrl($invoice);
33
0 commit comments