Zen Cart 1.5.6c
DB patch level: 1.5.6
PHP: 7.3.6-1
Quick update. Got my Stripe account set up today on the Japan site, verified and all, test and live API keys obtained and inserted into Stripe plugin configuration.
Sadly, a test brings up a well-known error during checkout in step 3 when pressing order confirmation button.
First we have the blank screen with just the following text displayed:
WARNING: An Error occurred, please refresh the page and try again.
On refreshing the page (https://***/shop/index.php?main_page=checkout_confirmation) there is the error displayed in the Zen Cart checkout confirmation page:
Must provide source or customer.
Checking the log on the Stripe site (actually quite impressive debugging support there) does not enlighten me yet, nor does Stack Overflow where this is discussed in one instance:
https://stackoverflow.com/questions/42500984/stripe-must-provide-source-or-customer
So I guess I'll be reading docs and figuring out what Javascript (I assume) is not populating a field.
For reference, the debug log:
/shop# cat logs/myDEBUG-20190725-004321-968029.log
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Charge instance: customer
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Charge instance: disputed
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Charge instance: fee
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Charge instance: invoice
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Object instance: address_city
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Object instance: address_country
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Object instance: address_line1
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Object instance: address_line1_check
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Object instance: address_line2
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Object instance: address_zip
[25-Jul-2019 00:43:22 Asia/Tokyo] Stripe Notice: Undefined property of Stripe_Object instance: address_zip_check
[25-Jul-2019 00:43:22 Asia/Tokyo] Request URI: /shop/index.php?main_page=checkout_process, IP address: 192.168.0.3
#1 trigger_error() called at [/shop/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/shop/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/shop/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/shop/includes/functions/functions_general.php:952]
#5 zen_db_perform() called at [/shop/includes/modules/payment/stripepay.php:495]
#6 stripepay->after_process() called at [/shop/includes/classes/payment.php:254]
#7 payment->after_process() called at [/shop/includes/modules/pages/checkout_process/header_php.php:17]
#8 require(/shop/includes/modules/pages/checkout_process/header_php.php) called at [/shop/index.php:36]
--> PHP Fatal error: 1364:Field 'stripe_object' doesn't have a default value :: INSERT INTO stripe_data (orders_id, stripe_charge_id, customers_id, stripe_amount, stripe_amount_refunded, stripe_currency, stripe_customer, stripe_description, stripe_disputed, stripe_fee, stripe_invoice, stripe_paid, stripe_address_city, stripe_address_country, stripe_address_line1, stripe_address_line1_check, stripe_address_line2, stripe_address_zip, stripe_address_zip_check, stripe_country, stripe_fingerprint, stripe_cvc_check, stripe_name, stripe_last4, stripe_exp_month, stripe_exp_year, stripe_type) VALUES ('34', 'ch_1EzmcgIvuX80g3UFyVX17IG5', '2', '58290', '0', 'JPY', '', '<testemailaddresshere>', '', '', '', '1', '', '', '', '', '', '', '', 'US', 'lHfW1lpMAnH1N1Ea', 'pass', '<My Name>', '4242', '1', '2021', 'Visa') ==> (as called by) ***/shop/includes/functions/functions_general.php on line 952 <== in ***/shop/includes/classes/db/mysql/query_factory.php on line 171Note: The email address is removed here in the post, it is actually a proper email format. Ditto for My Name.
I suspect perhaps the "US" is wrong, but that can be handled later.
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0