Go to the source code of this file.
Variables | |
| $fail | |
| $order | |
| $paypalResult | |
| $paypal = new dbxShopPayPal() | |
| try | |
| catch(Throwable $e) | $badPayPal = $paypalResult |
| $badPayPal ['purchase_units'][0]['payments']['captures'][0]['amount']['value'] = '19.90' | |
| catch(RuntimeException $e) | $amazonResult |
| $amazon = new dbxShopAmazonPay() | |
| if ( $status !=='completed') $fail( 'Amazon-Pay-Status wurde falsch normalisiert.' | |
| catch(Throwable $e) | $badAmazon = $amazonResult |
| $badAmazon ['merchantMetadata']['merchantReferenceId'] = 'ANDERE-BESTELLUNG' | |
| catch(RuntimeException $e) | $paypalSource = file_get_contents(dirname(__DIR__) . '/include/dbxShopPayPal.class.php') |
| $amazonSource = file_get_contents(dirname(__DIR__) . '/include/dbxShopAmazonPay.class.php') | |
| if (strpos((string) $paypalSource, 'PayPal-Request-Id:dbx-')===false||strpos((string) $amazonSource, "'checkout|' . (string)(\$order['order_no'] ?? '')")===false) | |
| $amazon = new dbxShopAmazonPay() |
Definition at line 61 of file payment_validation_test.php.
| catch (RuntimeException $e) $amazonResult |
Definition at line 51 of file payment_validation_test.php.
| $amazonSource = file_get_contents(dirname(__DIR__) . '/include/dbxShopAmazonPay.class.php') |
Definition at line 79 of file payment_validation_test.php.
| $badAmazon[ 'merchantMetadata'][ 'merchantReferenceId'] = 'ANDERE-BESTELLUNG' |
Definition at line 70 of file payment_validation_test.php.
| catch (Throwable $e) $badAmazon = $amazonResult |
Definition at line 69 of file payment_validation_test.php.
| $badPayPal[ 'purchase_units'][0][ 'payments'][ 'captures'][0][ 'amount'][ 'value'] = '19.90' |
Definition at line 43 of file payment_validation_test.php.
| catch (Throwable $e) $badPayPal = $paypalResult |
Definition at line 42 of file payment_validation_test.php.
| $fail |
Definition at line 9 of file payment_validation_test.php.
| $order |
Definition at line 14 of file payment_validation_test.php.
Referenced by dbxDD\backup(), dbx\dbxShop\dbxShopRepository\claimOrderPayment(), dbx\dbxShop\dbxShopAmazonPay\completeCheckoutSession(), dbx\dbxShop\dbxShopAmazonPay\createCheckoutSession(), dbx\dbxShop\dbxShopPayPal\createOrder(), dbx\dbxShop\dbxShopRepository\ensureOrderInvoicePdf(), dbx\dbxShop\dbxShopService\invoicePdf(), dbx\dbxShop\dbxShopRepository\invoicePdfAbsolutePath(), dbx\dbxShop\dbxShopService\orders(), dbx\dbxShop\dbxShopService\paypalReturn(), dbx\dbxShop\dbxShopRepository\saveWithdrawal(), WorkflowDefinitionDbStub\select(), dbx\dbxShop\dbxShopRepository\updateOrderPayment(), dbx\dbxShop\dbxShopRepository\updateOrderQuickAction(), dbx\dbxShop\dbxShopPayPal\validateCapture(), and dbx\dbxShop\dbxShopAmazonPay\validateCompletion().
| $paypal = new dbxShopPayPal() |
Definition at line 35 of file payment_validation_test.php.
| $paypalResult |
Definition at line 21 of file payment_validation_test.php.
| catch (RuntimeException $e) $paypalSource = file_get_contents(dirname(__DIR__) . '/include/dbxShopPayPal.class.php') |
Definition at line 78 of file payment_validation_test.php.
| if($status !=='completed') $fail('Amazon-Pay-Status wurde falsch normalisiert.' | ( | $status ! = = 'completed' | ) |
Definition at line 64 of file payment_validation_test.php.
| if(strpos((string) $paypalSource, 'PayPal-Request-Id:dbx-')===false||strpos((string) $amazonSource, "'checkout|' . (string)(\$order['order_no'] ?? '')")===false) | ( | strpos((string) $paypalSource, 'PayPal-Request-Id:dbx-') | = == false || strpos((string)$amazonSource, "'checkout|' . (string)(\$order['order_no'] ?? '')") === false | ) |
Definition at line 80 of file payment_validation_test.php.
| try |
Definition at line 36 of file payment_validation_test.php.