Skip to content

Instantly share code, notes, and snippets.

@gedex
Created July 24, 2017 10:49
Show Gist options
  • Save gedex/510ae3fad6583c2bd1a58b29d4fee84c to your computer and use it in GitHub Desktop.
Save gedex/510ae3fad6583c2bd1a58b29d4fee84c to your computer and use it in GitHub Desktop.
{
"id": "stripe",
"title": "Stripe",
"description": "Pay with your credit card via Stripe. TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the documentation \"<a href=\"https://stripe.com/docs/testing\">Testing Stripe</a>\" for more card numbers.",
"order": 4,
"enabled": true,
"method_title": "Stripe",
"method_description": "Stripe works by adding credit card fields on the checkout and then sending the details to Stripe for verification. <a href=\"https://dashboard.stripe.com/register\" target=\"_blank\">Sign up</a> for a Stripe account, and <a href=\"https://dashboard.stripe.com/account/apikeys\" target=\"_blank\">get your Stripe account keys</a>.",
"settings": {
"title": {
"id": "title",
"label": "Title",
"description": "This controls the title which the user sees during checkout.",
"type": "text",
"value": "Stripe",
"default": "Credit Card (Stripe)",
"tip": "This controls the title which the user sees during checkout.",
"placeholder": ""
},
"testmode": {
"id": "testmode",
"label": "Enable Test Mode",
"description": "Place the payment gateway in test mode using test API keys.",
"type": "checkbox",
"value": "yes",
"default": "yes",
"tip": "Place the payment gateway in test mode using test API keys.",
"placeholder": ""
},
"test_publishable_key": {
"id": "test_publishable_key",
"label": "Test Publishable Key",
"description": "Get your API keys from your stripe account.",
"type": "text",
"value": "pk_test_6yDxWFhi5CXpx6XFCOGG3CBn",
"default": "",
"tip": "Get your API keys from your stripe account.",
"placeholder": ""
},
"test_secret_key": {
"id": "test_secret_key",
"label": "Test Secret Key",
"description": "Get your API keys from your stripe account.",
"type": "text",
"value": "sk_test_A2hkmT99Tmnd9KSr9KpafY3s",
"default": "",
"tip": "Get your API keys from your stripe account.",
"placeholder": ""
},
"publishable_key": {
"id": "publishable_key",
"label": "Live Publishable Key",
"description": "Get your API keys from your stripe account.",
"type": "text",
"value": "",
"default": "",
"tip": "Get your API keys from your stripe account.",
"placeholder": ""
},
"secret_key": {
"id": "secret_key",
"label": "Live Secret Key",
"description": "Get your API keys from your stripe account.",
"type": "text",
"value": "",
"default": "",
"tip": "Get your API keys from your stripe account.",
"placeholder": ""
},
"statement_descriptor": {
"id": "statement_descriptor",
"label": "Statement Descriptor",
"description": "Extra information about a charge. This will appear on your customer’s credit card statement.",
"type": "text",
"value": "Local WP Dev",
"default": "",
"tip": "Extra information about a charge. This will appear on your customer’s credit card statement.",
"placeholder": ""
},
"capture": {
"id": "capture",
"label": "Capture charge immediately",
"description": "Whether or not to immediately capture the charge. When unchecked, the charge issues an authorization and will need to be captured later. Uncaptured charges expire in 7 days.",
"type": "checkbox",
"value": "yes",
"default": "yes",
"tip": "Whether or not to immediately capture the charge. When unchecked, the charge issues an authorization and will need to be captured later. Uncaptured charges expire in 7 days.",
"placeholder": ""
},
"stripe_checkout": {
"id": "stripe_checkout",
"label": "Enable Stripe Checkout",
"description": "If enabled, this option shows a \"pay\" button and modal credit card form on the checkout, instead of credit card fields directly on the page.",
"type": "checkbox",
"value": "no",
"default": "no",
"tip": "If enabled, this option shows a \"pay\" button and modal credit card form on the checkout, instead of credit card fields directly on the page.",
"placeholder": ""
},
"stripe_checkout_locale": {
"id": "stripe_checkout_locale",
"label": "Stripe Checkout locale",
"description": "Language to display in Stripe Checkout modal. Specify Auto to display Checkout in the user's preferred language, if available. English will be used by default.",
"type": "select",
"value": "en",
"default": "en",
"tip": "Language to display in Stripe Checkout modal. Specify Auto to display Checkout in the user's preferred language, if available. English will be used by default.",
"placeholder": "",
"options": {
"auto": "Auto",
"zh": "Simplified Chinese",
"da": "Danish",
"nl": "Dutch",
"en": "English",
"fi": "Finnish",
"fr": "French",
"de": "German",
"it": "Italian",
"ja": "Japanese",
"no": "Norwegian",
"es": "Spanish",
"sv": "Swedish"
}
},
"stripe_bitcoin": {
"id": "stripe_bitcoin",
"label": "Enable Bitcoin Currency",
"description": "If enabled, an option to accept bitcoin will show on the checkout modal. Note: Stripe Checkout needs to be enabled and store currency must be set to USD.",
"type": "checkbox",
"value": "no",
"default": "no",
"tip": "If enabled, an option to accept bitcoin will show on the checkout modal. Note: Stripe Checkout needs to be enabled and store currency must be set to USD.",
"placeholder": ""
},
"stripe_checkout_image": {
"id": "stripe_checkout_image",
"label": "Stripe Checkout Image",
"description": "Optionally enter the URL to a 128x128px image of your brand or product. e.g. <code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>",
"type": "text",
"value": "",
"default": "",
"tip": "Optionally enter the URL to a 128x128px image of your brand or product. e.g. <code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>",
"placeholder": ""
},
"request_payment_api": {
"id": "request_payment_api",
"label": "Enable Payment Request API",
"description": "If enabled, users will be able to pay using the Payment Request API if supported by the browser.",
"type": "checkbox",
"value": "no",
"default": "no",
"tip": "If enabled, users will be able to pay using the Payment Request API if supported by the browser.",
"placeholder": ""
},
"apple_pay": {
"id": "apple_pay",
"label": "Enable Apple Pay. <br />By using Apple Pay, you agree to <a href=\"https://stripe.com/apple-pay/legal\" target=\"_blank\">Stripe</a> and <a href=\"https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/\" target=\"_blank\">Apple</a>'s terms of service.",
"description": "If enabled, users will be able to pay with Apple Pay.",
"type": "checkbox",
"value": "no",
"default": "yes",
"tip": "If enabled, users will be able to pay with Apple Pay.",
"placeholder": ""
},
"apple_pay_button": {
"id": "apple_pay_button",
"label": "Button Style",
"description": "Select the button style you would like to show.",
"type": "select",
"value": "black",
"default": "black",
"tip": "Select the button style you would like to show.",
"placeholder": "",
"options": {
"black": "Black",
"white": "White"
}
},
"apple_pay_button_lang": {
"id": "apple_pay_button_lang",
"label": "Apple Pay Button Language",
"description": "Enter the 2 letter ISO code for the language you would like your Apple Pay Button to display in. Reference available ISO codes <a href=\"http://www.w3schools.com/tags/ref_language_codes.asp\" target=\"_blank\">here</a>.",
"type": "text",
"value": "en",
"default": "en",
"tip": "Enter the 2 letter ISO code for the language you would like your Apple Pay Button to display in. Reference available ISO codes <a href=\"http://www.w3schools.com/tags/ref_language_codes.asp\" target=\"_blank\">here</a>.",
"placeholder": ""
},
"saved_cards": {
"id": "saved_cards",
"label": "Enable Payment via Saved Cards",
"description": "If enabled, users will be able to pay with a saved card during checkout. Card details are saved on Stripe servers, not on your store.",
"type": "checkbox",
"value": "yes",
"default": "no",
"tip": "If enabled, users will be able to pay with a saved card during checkout. Card details are saved on Stripe servers, not on your store.",
"placeholder": ""
},
"logging": {
"id": "logging",
"label": "Log debug messages",
"description": "Save debug messages to the WooCommerce System Status log.",
"type": "checkbox",
"value": "yes",
"default": "no",
"tip": "Save debug messages to the WooCommerce System Status log.",
"placeholder": ""
}
},
"_links": {
"self": [
{
"href": "https://local.wordpress.dev/wp-json/wc/v2/payment_gateways/stripe"
}
],
"collection": [
{
"href": "https://local.wordpress.dev/wp-json/wc/v2/payment_gateways"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment