18 lines
602 B
PHP
Executable File
18 lines
602 B
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// Clé publique
|
|
// pk_test_51JZiq0GPrFXOX5m0vuyCKe2L7b6r3NborjROIf9IJT4kqV7aq0YyiVKlovu04A0i2ToOW1t9g9ibe70FABeIyFgC0074V9Jhg3
|
|
|
|
// Clé secrète
|
|
$sk="sk_test_51JZiq0GPrFXOX5m0zymL4fwUOVLWcT2P21JJxKvwwDNLHqFsUddw9x7Yw19Su0uI9JN12VvDH3JHLIVmvDiCcwyH007AeEGrvm";
|
|
|
|
require_once('/datas/07Prod/include/vendor/stripe/stripe-php/init.php');
|
|
|
|
$stripe = new \Stripe\StripeClient($sk);
|
|
$customer = $stripe->customers->create([
|
|
'description' => 'example customer',
|
|
'email' => 'email@example.com',
|
|
'payment_method' => 'pm_card_visa',
|
|
]);
|
|
echo $customer;
|
|
?>
|