Created
December 21, 2020 17:18
-
-
Save gusLopezC/06c0cf62bd48e6703a0a8cfa2442ab69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$customer = array( | |
'name' => 'Juan', | |
'last_name' => 'Vazquez Juarez', | |
'phone_number' => '4423456723', | |
'email' => 'juan.vazquez@empresa.com.mx'); | |
$chargeRequest = array( | |
"method" : "card", | |
'amount' => 100, | |
'description' => 'Cargo terminal virtual a mi merchant', | |
'customer' => $customer, | |
'send_email' => false, | |
'confirm' => false, | |
'redirect_url' => 'http://www.openpay.mx/index.html') | |
; | |
$customer = $openpay->customers->add($customer); | |
var_dump($customer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment