Plugin Directory

Changeset 2807585


Ignore:
Timestamp:
10/31/2022 03:18:08 AM (3 years ago)
Author:
chipasia
Message:

Minor improvement

Location:
chip-for-woocommerce
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chip-for-woocommerce/tags/1.1.3/api.php

    r2805470 r2807585  
    66 */
    77
    8 // This is CHIP API URL Endpoint as per documented in: https://gate.chip-in.asia/api/
     8// This is CHIP API URL Endpoint as per documented in: https://developer.chip-in.asia/api
    99define("WC_CHIP_ROOT_URL", "https://gate.chip-in.asia");
    1010
  • chip-for-woocommerce/tags/1.1.3/chip-for-woocommerce.php

    r2806878 r2807585  
    269269                    $methods = [];
    270270                    foreach ($data as $country => $pms) {
     271                        if (in_array('billplz', $pms)){
     272                            continue;
     273                        }
    271274                        foreach ($pms as $pm) {
    272275                            if (!array_key_exists($pm, $methods)) {
     
    302305                        echo ">";
    303306
    304                         $pm_name = $payment_methods['names'][$data["payment_method"]];
     307                        $pm_name_list = array('FPX B2C' => 'FPX', 'FPX B2B1' => 'FPX Business', 'Bank cards' => 'Bank Cards');
     308                        $pm_name = $pm_name_list[$payment_methods['names'][$data['payment_method']]];
     309                        $pm_name = apply_filters( 'wc_chip_payment_method_name', $pm_name);
    305310
    306311                        echo "<div style=\"font-size: 14px; min-height: 23px\">" . esc_html($pm_name) . "</div>";
     
    438443                $payment_method = sanitize_key($_REQUEST["chip-payment-method"]);
    439444
    440                 if (in_array($payment_method, ['billplz', 'fpx', 'fpx_b2b1', 'card'])){
     445                if (in_array($payment_method, ['fpx', 'fpx_b2b1', 'card'])){
    441446                    $u .= "?preferred=" . $payment_method;
    442447                }
  • chip-for-woocommerce/tags/1.1.3/readme.txt

    r2805470 r2807585  
    1717CHIP is an abbreviation of Cash, Card and Coin Handling Integrated Platform. CHIP allows you to securely sell your products and get paid.
    1818
    19 This plugin will enable your WooCommerce site to be integrated with CHIP as per documented in [API Documentation](https://gate.chip-in.asia/api/#/Purchases/purchases_create).
     19This plugin will enable your WooCommerce site to be integrated with CHIP as per documented in [API Documentation](https://developer.chip-in.asia/api#online_purchases_custom_payment_flow_direct_post).
    2020
    2121== Screenshots ==
    2222* Fill up the form with Brand ID and Secret Key. Tick Enable API and Save changes to activate.
    2323* Checkout and pay with CHIP
     24* CHIP payment page
     25* WooCommerce order received page
     26* WooCommerce dashboard order page
    2427
    2528== Changelog ==
     
    6669= Where can I find documentation? =
    6770
    68 You can visit our [API documentation](https://gate.chip-in.asia/api/) for your reference.
     71You can visit our [API documentation](https://developer.chip-in.asia/) for your reference.
    6972
    7073= What CHIP API services used in this plugin? =
     
    8992[Privacy Policy](https://www.chip-in.asia/privacy-policy)
    9093
    91 [API Documentation](https://gate.chip-in.asia/api/)
     94[API Documentation](https://developer.chip-in.asia/)
    9295
    9396[CHIP Merchants & DEV Community](https://www.facebook.com/groups/3210496372558088)
  • chip-for-woocommerce/trunk/readme.txt

    r2805470 r2807585  
    1717CHIP is an abbreviation of Cash, Card and Coin Handling Integrated Platform. CHIP allows you to securely sell your products and get paid.
    1818
    19 This plugin will enable your WooCommerce site to be integrated with CHIP as per documented in [API Documentation](https://gate.chip-in.asia/api/#/Purchases/purchases_create).
     19This plugin will enable your WooCommerce site to be integrated with CHIP as per documented in [API Documentation](https://developer.chip-in.asia/api#online_purchases_custom_payment_flow_direct_post).
    2020
    2121== Screenshots ==
    2222* Fill up the form with Brand ID and Secret Key. Tick Enable API and Save changes to activate.
    2323* Checkout and pay with CHIP
     24* CHIP payment page
     25* WooCommerce order received page
     26* WooCommerce dashboard order page
    2427
    2528== Changelog ==
     
    6669= Where can I find documentation? =
    6770
    68 You can visit our [API documentation](https://gate.chip-in.asia/api/) for your reference.
     71You can visit our [API documentation](https://developer.chip-in.asia/) for your reference.
    6972
    7073= What CHIP API services used in this plugin? =
     
    8992[Privacy Policy](https://www.chip-in.asia/privacy-policy)
    9093
    91 [API Documentation](https://gate.chip-in.asia/api/)
     94[API Documentation](https://developer.chip-in.asia/)
    9295
    9396[CHIP Merchants & DEV Community](https://www.facebook.com/groups/3210496372558088)
Note: See TracChangeset for help on using the changeset viewer.