Recurring payment with inline form (server side) gives the error Invalid IBAN structure and reloads the payment page without payment.
Recurring payment with inline form (elements) gives the error : Missing required source parameter : sepa_debit[iban] and reload payment page without payment
For both tests we used Stripe recommended test Iban for successful transactions : DE89370400440532013000
Code:
FAILED
Données brutes $response="{
"error": {
"type": "invalid_request_error",
"message": "Missing required param: customer.",
"param": "customer"
}
}
"
$results=array (
'error' =>
array (
'type' => 'invalid_request_error',
'message' => 'Missing required param: customer.',
'param' => 'customer',
),
);
$return=array (
'level' => 'fatal',
'errorText' => 'Missing required param: customer.. Veuillez contacter l\'administrateur du site pour vérifier les logs d\'erreur.',
'errorCode' => 400,
);
$request=array (
'currency' => 'eur',
'statement_descriptor' => 'ACTIV HA Negopack N3 avec paiement mensuel pour Activ\'H.A - Jean',
'owner[name]' => 'Jean',
'owner[email]' => 'myemail@me.com',
'owner[address][city]' => 'Chapt',
'owner[address][country]' => 'FR',
'owner[address][line1]' => '6 rue Jules',
'owner[address][postal_code]' => '69630',
'owner[address][state]' => 'ne',
'metadata[order_id]' => 5283,
'type' => 'sepa_debit',
'sepa_debit[iban]' => '89370400440532013000',
);
It seems like one shot payment with Stripe sepa worked well with inline form (elements)
Error : Invalid IBAN structure. Veuillez contacter l'administrateur du site pour vérifier les logs d'erreur.
Error : Received unknown parameters: currency, statement_descriptor, owner, type, sepa_debit. Veuillez contacter l'administrateur du site pour vérifier les logs d'erreur.
It also seems like payment succeeded but is recorded as a Visa payment in Stripe Dashboard and not a SEPA one.
Code:
SUCCESS
Données brutes $response="{
"id": "ch_1ByeEuDq739h3iODQqq66a9v",
"object": "charge",
"amount": 18000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"balance_transaction": "txn_1ByeEuDq739h3iODyQpFOC3g",
"captured": true,
"created": 1519383440,
"currency": "eur",
"customer": "cus_CKnpue29oakIxo",
"description": "ACTIV HA Frais et pénalités pour retard de paiement pour Activ'H.A - Jean",
"destination": null,
"dispute": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {},
"invoice": null,
"livemode": false,
"metadata": {
"user_id": "57",
"order_id": "5284",
"invoice": "ACTIVHA-U-331"
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"receipt_email": "myemail@me.com",
"receipt_number": null,
"refunded": false,
"refunds": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1ByeEuDq739h3iODQqq66a9v/refunds"
},
"review": null,
"shipping": null,
"source": {
"id": "card_1ByGpWDq739h3iODZN7Ciy2f",
"object": "card",
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,
"address_line2": null,
"address_state": null,
"address_zip": null,
"address_zip_check": null,
"brand": "Visa",
"country": "US",
"customer": "cus_CKnpue29oakIxo",
"cvc_check": null,
"dynamic_last4": null,
"exp_month": 2,
"exp_year": 2020,
"fingerprint": "Y9llor3Ru8tOVDjo",
"funding": "credit",
"last4": "4242",
"metadata": {},
"name": "myemail@me.com",
"tokenization_method": null
},
"source_transfer": null,
"statement_descriptor": null,
"status": "succeeded",
"transfer_group": null
}
"
$results=array (
'id' => 'ch_1ByeEuDq739h3iODQqq66a9v',
'object' => 'charge',
'amount' => 18000,
'amount_refunded' => 0,
'application' => NULL,
'application_fee' => NULL,
'balance_transaction' => 'txn_1ByeEuDq739h3iODyQpFOC3g',
'captured' => true,
'created' => 1519383440,
'currency' => 'eur',
'customer' => 'cus_CKnpue29oakIxo',
'description' => 'ACTIV HA Frais et pénalités pour retard de paiement pour Activ\'H.A - Jean',
'destination' => NULL,
'dispute' => NULL,
'failure_code' => NULL,
'failure_message' => NULL,
'fraud_details' =>
array (
),
'invoice' => NULL,
'livemode' => false,
'metadata' =>
array (
'user_id' => '57',
'order_id' => '5284',
'invoice' => 'ACTIVHA-U-331',
),
'on_behalf_of' => NULL,
'order' => NULL,
'outcome' =>
array (
'network_status' => 'approved_by_network',
'reason' => NULL,
'risk_level' => 'normal',
'seller_message' => 'Payment complete.',
'type' => 'authorized',
),
'paid' => true,
'receipt_email' => 'myemail@me.com',
'receipt_number' => NULL,
'refunded' => false,
'refunds' =>
array (
'object' => 'list',
'data' =>
array (
),
'has_more' => false,
'total_count' => 0,
'url' => '/v1/charges/ch_1ByeEuDq739h3iODQqq66a9v/refunds',
),
'review' => NULL,
'shipping' => NULL,
'source' =>
array (
'id' => 'card_1ByGpWDq739h3iODZN7Ciy2f',
'object' => 'card',
'address_city' => NULL,
'address_country' => NULL,
'address_line1' => NULL,
'address_line1_check' => NULL,
'address_line2' => NULL,
'address_state' => NULL,
'address_zip' => NULL,
'address_zip_check' => NULL,
'brand' => 'Visa',
'country' => 'US',
'customer' => 'cus_CKnpue29oakIxo',
'cvc_check' => NULL,
'dynamic_last4' => NULL,
'exp_month' => 2,
'exp_year' => 2020,
'fingerprint' => 'Y9llor3Ru8tOVDjo',
'funding' => 'credit',
'last4' => '4242',
'metadata' =>
array (
),
'name' => 'myemail@me.com',
'tokenization_method' => NULL,
),
'source_transfer' => NULL,
'statement_descriptor' => NULL,
'status' => 'succeeded',
'transfer_group' => NULL,
);
$return='ch_1ByeEuDq739h3iODQqq66a9v';
$request=array (
'amount' => 18000.0,
'currency' => 'eur',
'description' => 'ACTIV HA Frais et pénalités pour retard de paiement pour Activ\'H.A - Jean',
'receipt_email' => 'myemail@me.com',
'metadata[user_id]' => 57,
'metadata[order_id]' => 5284,
'metadata[invoice]' => 'ACTIVHA-U-331',
'customer' => 'cus_CKnpue29oakIxo',
);