Stripe Payment

stripe_store_01.png
1.3.3 Phoenix 1.0.7.0 - 1.0.8.7
Released:
Mon Nov 08, 2021 5:10 pm
File size:
2.04 MiB
Validated for:
Phoenix 1.0.7.0 - 1.0.8.7
MD5 checksum:
91c6032a095c75d31bbb6dfdad28a7ac
Description
Stripe SCA is a refactored version of the standard Stripe payments to update the Stripe API to v3 and support the SCA process flow. Other than using different Stripe API calls to set up and process payments, the main change is to defer order fulfillment to a web hook called by Stripe after the payment has been authorised.
Compatibility:
Phoenix 1.0.0.0 - 1.0.8.7+
PHP 7.0 - 7.4

OsCommerce 2.3.x
PHP 5.4-5.6
Stripe SCA 3.0
1.0
- Initial release

1.0.1
- update all SQL to use actual table name instead of global variable
- add javascript to 'footer_scripts' template block, so loaded after jQuery in Phoenix and remove $ undefined error javascript error
- add Bootstrap classes to form controls to improve appearance in Phoenix, and fix card element not being visible in Phoenix
- hide 'add card' prompt in payment form when token save configuration is false
- stop logging to event table when configuration logging setting is false
- set module public title to 'Credit Card (Stripe SCA)' so enabling multiple credit card modules is less confusing
- fix save card icon display in Phoenix 'my account' page
- remove configuration option to validate CVC, as card fields are managed by Stripe

1.0.2
- update webhook to change email link for account history to string literal
- update configuration to accept both live and test keys and use correct key when toggling between live and test selection
- implement authorise only option. Authorised transactions must be captured using the Stripe dashboard, which will then fire the call to the webhook and complete the order process

1.0.3
- fix missing payment method in customer order confirmation email
- separate web hook signing secrets for test and live
- attempt to resolve 'cannot access empty property' error in stripe_sca.php, line 393

1.0.4
- fix web hook signing secret
- add hooks for Discount Codes BS module

1.0.5
- make card number field style consistant with card name field

1.0.6
- add call to $order_total_modules->process(); when creating a new temporary order
- Stripe apiKey not set correctly in webhook.php and payment_intent.php
- improve checking for Discount Codes BS module

1.0.7
- implement raiwa refactoring of order processing, moving most out of webhook and into after_process function of payment module and include hooks to a number of common order processing modules
Note that setting of several customer columns in order table is commented out to enable module to run in standard system
- Remove a number of English prompts and messages from processing modules and define them in language file
- refactor javascript in payment form to remove redundant fields and some dependancies on a specific theme

1.0.8
- remove hooks to third party order processing modules
- update order status with error message if webhook receives error
- fix missing information in order status for successful payment, and assume customer received email

1.0.9
- add order comment to preparing order status and save into order status history
- update order status history with success order status
- remove customer notified flag from "Stripe [Transactions]" order status

1.0.10
- fix stripe error in payment intent hook not being passed back to browser
- fix stripe error with saved card not being shown to user
- allow stripe error detaching card from customer to still delete saved card from store database

1.0.11
- remove cart items from Stripe transaction metadata to fix error when too many items
- fix missing totals from customer email

1.0.12
- Stripe amount not handling shipping and tax correctly
- Stop creating multiple 'preparing' order records as cart changed

1.0.13
- Remove potential SQL injection
- Tidy account saved cards when multiple cards
- remove potential webhook secret exposure

1.0.14
- Added line to reset attributes variable between each product in order e-mail

1.0.16
- Fixed order total sort order not saved in database

1.1.0
- Update for Phoenix 1.0.7.9+
- removed duplicated language constant
- Fixed javascript error to allow to save cards
- Updated account card module
- changed save card tick box to bootstrap slider
- Updated Stripe SDK to 7.61/3.01

1.2.0
- Update for Phoenix 1.0.7.12+
- Fixed error when some address modules are not used/filled in
- Updated code in all modules to match 1.0.8.0 core code base

1.2.1
- Removed zone_id from the requires list to allow installation without state module.

1.2.2
- Added code to update the order comment if it has been changed during checkout.
- Moved the order comment to payment confimation (by default:"pending") status. Thanks to @14Steve14 for to point it out.

1.3.0
- Modified Card information details on checkout confirmation. Thanks to @mhsuffolk for the suggestion
- Fixed bug in webhook. Thanks to @BrockleyJohn for the report and fix
- Added hook to auto delete unfinished Stripe orders (Preparing [Stripe SCA] order status).
- Tested with Phoenix 1.0.8.4

1.3.1
- Shorten Card information details on checkout confirmation. Thanks to @mhsuffolk for the suggestion
- Fixed bug for disabled/empty days in delete stripe orders hook.

1.3.2
- Fixed incompatibility in the delete stripe orders hook with some Database versions. Thanks to @lecarlb for the report and testing
- Updated deprecated tep_mail function to Notifications::mail( for Phoenix 1.0.8.4+ core compatibility.
Donate to Raiwa. Thank you for donating, it allows me to spend more time developing free contributions for you to use.
  • Author raiwa
  • Last updated Mon Nov 08, 2021 5:10 pm
  • Total Downloads 759
  • Rating
    (1)
  • Categories Payment
stripe_store_02.png stripe_store_04.png stripe_store_03.png stripe_admin_01.png
  • Addon Revisions/Downloads
    Version
    Phoenix Version(s)