Skip to content

Commit 8bde666

Browse files
committed
removed sensitive data
1 parent a8881ab commit 8bde666

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/authorization.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33

44
$ecommerce = new \Sipay\Ecommerce(realpath(__DIR__."/../etc/config.ini"));
55

6+
print("Autorización \n");
7+
68
$amount = new \Sipay\Amount(200, 'EUR');
79

8-
$card = new \Sipay\Paymethods\Card('6712009000000205', 2018, 12);
10+
$card = new \Sipay\Paymethods\Card('4242424242424242', 2018, 12);
911

1012
$options = array(
1113
'order' => 'order-test',
@@ -20,8 +22,9 @@
2022
}else{
2123
print("Error: ".$auth->description."\n");
2224
}
25+
print("Autorización tokenizada \n");
2326

24-
$stored_card = new \Sipay\Paymethods\StoredCard('new-token');
27+
$stored_card = new \Sipay\Paymethods\StoredCard('ABC123');
2528

2629
$auth2 = $ecommerce->authorization($stored_card, $amount, $options);
2730

@@ -31,6 +34,7 @@
3134
print("Error: ".$auth2->description."\n");
3235
}
3336

37+
print("Autorización con FPAY \n");
3438
$fast_pay = new \Sipay\Paymethods\FastPay('0f266784e7ba4e438040fdd1dbbfcd73');
3539

3640
$auth3 = $ecommerce->authorization($fast_pay, $amount, $options);

0 commit comments

Comments
 (0)