Error al crear suscripción
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Buen Dia
Estoy intentando crear una suscripción, previamente ya cree el producto y el plan , pero al momento de crear la suscripcion me presenta este error
Estoy haciendo la consulta de esta forma
curl_setopt($ch, CURLOPT_URL, 'https://api.paypal.com/v1/payments/billing-agreements/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json2);
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = 'Accept: application/json';
$headers[] = 'Authorization: Bearer '.$resp->access_token.'';
$headers[] = 'Prefer: return=representation';
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
Los datos que estoy pasando en la variable $json2 son estos
{
"name": "prueba plan",
"description": "prueba plan",
"start_date": "2019-07-16T12:03:35-05:00",
"plan": {
"id": "P-93695163JH103264GLUWK6EI"
},
"payer": {
"payment_method": "paypal"
}
}
Me gustaria saber que estoy haciendo mal? que error tendria que ajustar?
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Paypal express checkout, payment they error "Sorry, something went wrong. Please try again." in PayPal Payments Standard
- Add Others data in SDKs
- Getting errors when integrating standard checkout with my web site. Probably a beginner problem. in SDKs
- Get error message "Someting went wrong" when the sandbox account tap "Agree and Connect" button. in Sandbox Environment
- Connecting with site to take payments in Payflow