Changeset 2289637
- Timestamp:
- 04/22/2020 09:32:45 PM (6 years ago)
- Location:
- postpay
- Files:
-
- 6 edited
- 21 copied
-
tags/0.1.4 (copied) (copied from postpay/trunk)
-
tags/0.1.4/LICENSE (copied) (copied from postpay/trunk/LICENSE)
-
tags/0.1.4/assets (copied) (copied from postpay/trunk/assets)
-
tags/0.1.4/includes (copied) (copied from postpay/trunk/includes)
-
tags/0.1.4/includes/class-wc-postpay-gateway.php (copied) (copied from postpay/trunk/includes/class-wc-postpay-gateway.php)
-
tags/0.1.4/includes/http/class-wc-postpay-adapter.php (copied) (copied from postpay/trunk/includes/http/class-wc-postpay-adapter.php)
-
tags/0.1.4/includes/request/class-wc-postpay-request-checkout.php (modified) (2 diffs)
-
tags/0.1.4/includes/wc-postpay-scripts.php (copied) (copied from postpay/trunk/includes/wc-postpay-scripts.php)
-
tags/0.1.4/includes/wc-postpay-settings.php (copied) (copied from postpay/trunk/includes/wc-postpay-settings.php) (1 diff)
-
tags/0.1.4/languages (copied) (copied from postpay/trunk/languages)
-
tags/0.1.4/languages/postpay-es_ES.mo (copied) (copied from postpay/trunk/languages/postpay-es_ES.mo)
-
tags/0.1.4/languages/postpay-es_ES.po (copied) (copied from postpay/trunk/languages/postpay-es_ES.po)
-
tags/0.1.4/languages/postpay.pot (copied) (copied from postpay/trunk/languages/postpay.pot) (1 diff)
-
tags/0.1.4/postpay.php (copied) (copied from postpay/trunk/postpay.php) (1 diff)
-
tags/0.1.4/readme.txt (copied) (copied from postpay/trunk/readme.txt) (1 diff)
-
tags/0.1.4/templates (copied) (copied from postpay/trunk/templates)
-
tags/0.1.4/templates/widgets/cart.php (copied) (copied from postpay/trunk/templates/widgets/cart.php)
-
tags/0.1.4/templates/widgets/product.php (copied) (copied from postpay/trunk/templates/widgets/product.php)
-
tags/0.1.4/vendor (copied) (copied from postpay/trunk/vendor)
-
tags/0.1.4/vendor/autoload.php (copied) (copied from postpay/trunk/vendor/autoload.php)
-
tags/0.1.4/vendor/composer/autoload_real.php (copied) (copied from postpay/trunk/vendor/composer/autoload_real.php)
-
tags/0.1.4/vendor/composer/autoload_static.php (copied) (copied from postpay/trunk/vendor/composer/autoload_static.php)
-
trunk/includes/request/class-wc-postpay-request-checkout.php (modified) (2 diffs)
-
trunk/includes/wc-postpay-settings.php (modified) (1 diff)
-
trunk/languages/postpay.pot (modified) (1 diff)
-
trunk/postpay.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
postpay/tags/0.1.4/includes/request/class-wc-postpay-request-checkout.php
r2267104 r2289637 30 30 $order = wc_get_order( $order_id ); 31 31 32 if ( is_user_logged_in() ) { 33 $customer = WC_Postpay_Request_Customer::build( $order->get_user_id() ); 34 } else { 35 $customer = WC_Postpay_Request_Guest::build( $order ); 36 } 37 38 return array( 32 $data = array( 39 33 'order_id' => $order_id . '-' . uniqid(), 40 34 'total_amount' => WC_Postpay_Adapter::decimal( $order->get_total() ), 41 35 'tax_amount' => WC_Postpay_Adapter::decimal( $order->get_total_tax() ), 42 36 'currency' => $order->get_currency(), 43 'shipping' => WC_Postpay_Request_Shipping::build( $order ),44 37 'billing_address' => WC_Postpay_Request_Address::build( $order->get_address( 'billing' ) ), 45 38 'customer' => $customer, … … 60 53 'metadata' => WC_Postpay_Request_Metadata::build(), 61 54 ); 55 56 if ( is_user_logged_in() ) { 57 $data['customer'] = WC_Postpay_Request_Customer::build( $order->get_user_id() ); 58 } else { 59 $data['customer'] = WC_Postpay_Request_Guest::build( $order ); 60 } 61 62 if ( $order->get_shipping_method() ) { 63 $data['shipping'] = WC_Postpay_Request_Shipping::build( $order ); 64 } 65 66 return $data; 62 67 } 63 68 -
postpay/tags/0.1.4/includes/wc-postpay-settings.php
r2287781 r2289637 48 48 'desc_tip' => true, 49 49 ), 50 ' testmode'=> array(50 'sandbox' => array( 51 51 'title' => __( 'Postpay Sandbox', 'postpay' ), 52 52 'type' => 'checkbox', -
postpay/tags/0.1.4/languages/postpay.pot
r2287781 r2289637 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1. 3\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
postpay/tags/0.1.4/postpay.php
r2287781 r2289637 2 2 /** 3 3 * Plugin Name: WooCommerce Postpay Payment Gateway 4 * Version: 0.1. 34 * Version: 0.1.4 5 5 * Plugin URI: https://github.com/postpayio/woocommerce 6 6 * Description: Buy now and pay later with zero interest and zero fees. -
postpay/tags/0.1.4/readme.txt
r2287781 r2289637 73 73 == Changelog == 74 74 75 = 0.1.4 - 2020-04-23 = 76 * Fixed sandbox setting name 77 * Allowed empty shipping method 78 75 79 = 0.1.3 - 2020-04-21 = 76 80 * Added max amount and min amount settings -
postpay/trunk/includes/request/class-wc-postpay-request-checkout.php
r2267104 r2289637 30 30 $order = wc_get_order( $order_id ); 31 31 32 if ( is_user_logged_in() ) { 33 $customer = WC_Postpay_Request_Customer::build( $order->get_user_id() ); 34 } else { 35 $customer = WC_Postpay_Request_Guest::build( $order ); 36 } 37 38 return array( 32 $data = array( 39 33 'order_id' => $order_id . '-' . uniqid(), 40 34 'total_amount' => WC_Postpay_Adapter::decimal( $order->get_total() ), 41 35 'tax_amount' => WC_Postpay_Adapter::decimal( $order->get_total_tax() ), 42 36 'currency' => $order->get_currency(), 43 'shipping' => WC_Postpay_Request_Shipping::build( $order ),44 37 'billing_address' => WC_Postpay_Request_Address::build( $order->get_address( 'billing' ) ), 45 38 'customer' => $customer, … … 60 53 'metadata' => WC_Postpay_Request_Metadata::build(), 61 54 ); 55 56 if ( is_user_logged_in() ) { 57 $data['customer'] = WC_Postpay_Request_Customer::build( $order->get_user_id() ); 58 } else { 59 $data['customer'] = WC_Postpay_Request_Guest::build( $order ); 60 } 61 62 if ( $order->get_shipping_method() ) { 63 $data['shipping'] = WC_Postpay_Request_Shipping::build( $order ); 64 } 65 66 return $data; 62 67 } 63 68 -
postpay/trunk/includes/wc-postpay-settings.php
r2287781 r2289637 48 48 'desc_tip' => true, 49 49 ), 50 ' testmode'=> array(50 'sandbox' => array( 51 51 'title' => __( 'Postpay Sandbox', 'postpay' ), 52 52 'type' => 'checkbox', -
postpay/trunk/languages/postpay.pot
r2287781 r2289637 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1. 3\n"5 "Project-Id-Version: WooCommerce Postpay Payment Gateway 0.1.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/postpay\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
postpay/trunk/postpay.php
r2287781 r2289637 2 2 /** 3 3 * Plugin Name: WooCommerce Postpay Payment Gateway 4 * Version: 0.1. 34 * Version: 0.1.4 5 5 * Plugin URI: https://github.com/postpayio/woocommerce 6 6 * Description: Buy now and pay later with zero interest and zero fees. -
postpay/trunk/readme.txt
r2287781 r2289637 73 73 == Changelog == 74 74 75 = 0.1.4 - 2020-04-23 = 76 * Fixed sandbox setting name 77 * Allowed empty shipping method 78 75 79 = 0.1.3 - 2020-04-21 = 76 80 * Added max amount and min amount settings
Note: See TracChangeset
for help on using the changeset viewer.