Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>sorry don't get exactly what you mean?! Or where the problem is located... My Query looks like...</p> <pre><code>// Build URL with all infos $nvpstr = '&amp;AMT=' . $amt . '&amp;ITEMAMT=' . $amt . '&amp;CURRENCYCODE=' . $this-&gt;currencyCode . '&amp;LOCALECODE=' . $user-&gt;land . '&amp;PAYMENTACTION=' . $this-&gt;paymentAction . '&amp;RETURNURL=' . $returnUrl . '&amp;CANCELURL=' . $cancelUrl . '&amp;DESC=' . $this-&gt;getDesc() . '&amp;SHIPTONAME=' . $user-&gt;vorname . ' ' . $user-&gt;nachname . '&amp;SHIPTOSTREET=' . $user-&gt;strasse . '&amp;SHIPTOCITY=' . $user-&gt;ort . '&amp;SHIPTOZIP=' . $user-&gt;plz . '&amp;L_NAME0=www.detailpool.com' . '&amp;L_AMT0=' . $amt . '&amp;NOSHIPPING=1' . '&amp;USERACTION=commit'; //echo $nvpstr; die(); $this-&gt;callerService = new CallerService($this-&gt;type, $this-&gt;test); $resArray = $this-&gt;callerService-&gt;hash_call("SetExpressCheckout", $nvpstr); header('Location: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&amp;token=' . $resArray['TOKEN']); } </code></pre> <p>And then</p> <pre><code>/** * Wird nach der Rückkehr von Paypal aufgerufen */ public function getCheckoutDetails($amt) { $this-&gt;writeLog("Paypal Status-Update started...", 1); $token = JRequest::getVar('token', 0); $this-&gt;group = JRequest::getInt('group', -1); $this-&gt;type = JRequest::getInt('type', -1); $amt = round($amt, 2); // Build URL with all infos $nvpstr = '&amp;TOKEN=' . urlencode($token) . '&amp;NOSHIPPING=1' . '&amp;USERACTION=commit'; $this-&gt;callerService = new CallerService($this-&gt;type, $this-&gt;test); $resArray = $this-&gt;callerService-&gt;hash_call("GetExpressCheckoutDetails", $nvpstr); $this-&gt;completeSale($resArray['TOKEN'], $resArray['PAYERID'], $amt); } /** * Nach der Abwicklung auf der Paypalseite wird eine weitere Aktion erforderlich, * um die Kaufabwicklung zu bestätigen... */ private function completeSale($token, $payerID, $amt) { require_once(JPATH_ROOT.'/components/com_detailpool/libraries/Zahlung.php'); // Build URL with all infos $nvpstr = '&amp;TOKEN=' . urlencode($token) . '&amp;PAYERID=' . urlencode($payerID) . '&amp;PAYMENTACTION=' . $this-&gt;paymentAction . '&amp;AMT=' . $amt . '&amp;CURRENCYCODE=' . $this-&gt;currencyCode . '&amp;DESC=' . $this-&gt;getDesc(); $resArray = $this-&gt;callerService-&gt;hash_call("DoExpressCheckoutPayment", $nvpstr); $this-&gt;writeLog('DoExpressCheckoutPayment Amt: ' . $amt . ' Group: ' . $this-&gt;group); // Prüfen, ob alles geklappt hat if ($resArray['PAYMENTSTATUS'] == 'Completed') { return $this-&gt;paymentSuccess(); } else { $this-&gt;paymentFail(); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload