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
/* | |
* This script copies products, plans, and prices from Stripe's live environment to the test environment. | |
* It requires the Stripe PHP library (https://github.com/stripe/stripe-php). | |
* | |
* To use this script, replace $stripeLiveSecretKey and $stripeTestSecretKey with your own Stripe keys. | |
* | |
* Note: The script handles exceptions and avoids duplication by checking if the item already exists in the test environment before attempting to create it. | |
*/ | |
// Using https://github.com/stripe/stripe-php |
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
$countryCodeToEmoji = [ | |
'AD' => '๐ฆ๐ฉ', | |
'AE' => '๐ฆ๐ช', | |
'AF' => '๐ฆ๐ซ', | |
'AG' => '๐ฆ๐ฌ', | |
'AI' => '๐ฆ๐ฎ', | |
'AL' => '๐ฆ๐ฑ', | |
'AM' => '๐ฆ๐ฒ', | |
'AN' => '๐ฆ๐ณ', | |
'AO' => '๐ฆ๐ด', |