Conversation
…Also adding those missing 'manual sync' action (Installment, PayNow).
danfowler
approved these changes
Jul 24, 2020
jonrandy
reviewed
Jul 24, 2020
| 'title' => array( | ||
| 'title' => __( 'Title', 'omise' ), | ||
| 'type' => 'text', | ||
| 'description' => __( 'This controls the title which the user sees during checkout.', 'omise' ), |
jonrandy
reviewed
Jul 24, 2020
| 'description' => array( | ||
| 'title' => __( 'Description', 'omise' ), | ||
| 'type' => 'textarea', | ||
| 'description' => __( 'This controls the description which the user sees during checkout.', 'omise' ) |
jonrandy
reviewed
Jul 24, 2020
| 'title' => array( | ||
| 'title' => __( 'Title', 'omise' ), | ||
| 'type' => 'text', | ||
| 'description' => __( 'This controls the title which the user sees during checkout.', 'omise' ), |
jonrandy
reviewed
Jul 24, 2020
| 'description' => array( | ||
| 'title' => __( 'Description', 'omise' ), | ||
| 'type' => 'textarea', | ||
| 'description' => __( 'This controls the description which the user sees during checkout.', 'omise' ) |
Contributor
Author
|
@jonrandy done, I have just pushed a new commit to remove |
jonrandy
approved these changes
Jul 31, 2020
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Objective
Mainly to cleanup code after a long work of adding in and removing out partial of code here and there.
2. Description of change
/includes/gateway/class-omise-payment-*.phpclasses.Only removing 1 indent.
Back to the PR #153: "Code cleaning for payment method classes", the outer function layer has been removed. However, because I don't want to create an unnecessary LOC at that time, so I leave all the code as it is without moving its indent up 1 layer.
So for this time, just to remove the remaining indentation for the following files:
/includes/gateway/class-omise-payment.phpRemoving unnecessary long pyramid layer of indent. Grouping it to make it easier to read
Before
to
$ordervariable, accessingOrderobject from a class's property instead (make sure that the entire of payment processing is using and manipulating the same Order Object).3. Quality assurance
🔧 Environments:
✏️ Details:
invalid_ordererror message (https://github.com/omise/omise-woocommerce/pull/182/files#diff-b2a67ad6a97418df7dddcefcfc2a5319R401), you will need to modifyOmise_Payment::load_order( $order );code.Right at the first line after an order id has been passed through the method's argument:
payment_failederror message (https://github.com/omise/omise-woocommerce/pull/182/files#diff-b2a67ad6a97418df7dddcefcfc2a5319R407), you may place an order with Credit Card payment method using a failed-test-card. (Insufficient fund error card:4111 1111 1114 0011)Alipay
Bill Payment

Credit Card

Installment

Internet Banking

PayNow

TrueMoney Wallet

4. Impact of the change
None
5. Priority of change
Normal
6. Additional Notes
None