Skip to content

Commit

Permalink
Add default PayPal Checkout settings for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mattallan committed Jul 14, 2020
1 parent 0df7cc1 commit 306b3b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/docker/initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ wp theme install storefront --activate
echo "Activate and setup PayPal Checkout"
wp plugin activate woocommerce-gateway-paypal-express-checkout

echo "Setting up PayPal Checkout..."
wp option set woocommerce_ppec_paypal_settings --format=json '{"enabled":"yes","title":"PayPal Checkout","description":"Pay via PayPal Checkout","account_settings":"","environment":"sandbox","api_credentials":"","api_username":"","api_password":"","api_signature":"","api_certificate":"","api_subject":"","sandbox_api_credentials":"","sandbox_api_username":"ppec_e2e_api1.business.example.com","sandbox_api_password":"LMBU4MZARU2BVBJE","sandbox_api_signature":"AD6.CjaJSCfDPJMZnUMvahZe6rLFAEhy2luGVkxJ91aM9SgRaN8S.V2F","sandbox_api_certificate":"","sandbox_api_subject":"","paypal_hosted_settings":"","brand_name":"Store","logo_image_url":"","header_image_url":"","page_style":"","landing_page":"Billing","advanced":"","debug":"yes","invoice_prefix":"WC-","require_billing":"no","require_phone_number":"no","paymentaction":"sale","instant_payments":"no","subtotal_mismatch_behavior":"add","button_settings":"","use_spb":"yes","button_color":"gold","button_shape":"rect","button_label":"paypal","button_layout":"vertical","button_size":"responsive","hide_funding_methods":"","credit_enabled":"no","cart_checkout_enabled":"yes","mini_cart_settings":"","mini_cart_settings_toggle":"yes","mini_cart_button_layout":"horizontal","mini_cart_button_size":"responsive","mini_cart_button_label":"paypal","mini_cart_hide_funding_methods":"","mini_cart_credit_enabled":"no","single_product_settings":"","checkout_on_single_product_enabled":"yes","single_product_settings_toggle":"no","single_product_button_layout":"vertical","single_product_button_size":"responsive","single_product_button_label":"paypal","single_product_hide_funding_methods":["CARD"],"single_product_credit_enabled":"no","mark_settings":"","mark_enabled":"yes","mark_settings_toggle":"no","mark_button_layout":"vertical","mark_button_size":"responsive","mark_button_label":"paypal","mark_hide_funding_methods":["CARD"],"mark_credit_enabled":"no"}'

echo "Adding basic WooCommerce settings..."
wp option set woocommerce_store_address "60 29th Street"
wp option set woocommerce_store_address_2 "#343"
Expand Down

0 comments on commit 306b3b0

Please sign in to comment.