Skip to content

Instantly share code, notes, and snippets.

View Ladinstar's full-sized avatar
🏠
Working from school and home

Avaïka Alladin Ladinstar

🏠
Working from school and home
View GitHub Profile
@Ladinstar
Ladinstar / french_and_english_translation_of_stripe_code_error.php
Last active November 5, 2021 00:57
French and English translation of Stripe online payment error codes in PHP array
<?php
// English errors
$en_errors = [
"account_already_exists" => "The email address provided for the creation of a deferred account already has an account associated with it. Use the OAuth flow to connect the existing account to your platform.",
"account_country_invalid_address" => "The country of the business address provided does not match the country of the account. Businesses must be located in the same country as the account.",
"account_invalid" => "The account ID provided as a value for the Stripe-Account header is invalid. Check that your requests are specifying a valid account ID.",
"account_number_invalid" => "The bank account number provided is invalid (e.g., missing digits). Bank account information varies from country to country. We recommend creating validations in your entry forms based on the bank account formats we provide.",
"alipay_upgrade_required" => "This method for creating Alipay payments is not supported anymore. Please upgrade your integration to us