Skip to content

Commit

Permalink
Update commerce_paypal to 7.x-2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentTorregrosa committed May 8, 2019
1 parent 12b8835 commit 702b7e4
Show file tree
Hide file tree
Showing 18 changed files with 2,542 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ core = 7.x
; Simple tests
; files[] = tests/commerce_paypal.test

; Information added by Drupal.org packaging script on 2018-10-22
version = "7.x-2.6"
; Information added by Drupal.org packaging script on 2019-05-06
version = "7.x-2.7"
core = "7.x"
project = "commerce_paypal"
datestamp = "1540244884"
datestamp = "1557130694"
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,12 @@ function commerce_paypal_reverse_payment_action($payment_action) {
*/
function commerce_paypal_currencies($method_id) {
switch ($method_id) {
case 'paypal_wpp':
case 'paypal_ec':
case 'payflow_link':
return drupal_map_assoc(array('AUD', 'BRL', 'CAD', 'CHF', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'JPY', 'NOK', 'NZD', 'PLN', 'SEK', 'SGD', 'USD'));
case 'paypal_ppa':
return drupal_map_assoc(array('AUD', 'CAD', 'EUR', 'GBP', 'JPY', 'USD'));
case 'paypal_wps':
case 'paypal_wpp':
case 'paypal_ec':
case 'payflow_link':
return drupal_map_assoc(array('AUD', 'BRL', 'CAD', 'CHF', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'ILS', 'INR', 'JPY', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'USD'));
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/**
* @file
* Documents hooks provided by the Commerce PayPal Checkout module.
*/

/**
* Allows modules to alter the request body before the create order API call is
* made to PayPal.
*
* @param array $request_body
* The request body.
* @param $order
* The order.
*/
function hook_commerce_paypal_checkout_create_order_request_alter(&$request_body, $order) {
// No example.
}

/**
* Allows modules to alter the request body before the update order API call is
* made to PayPal.
*
* @param array $request_body
* The request body.
* @param $order
* The order.
*/
function hook_commerce_paypal_checkout_update_order_request_alter(&$request_body, $order) {
// No example.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name = PayPal Checkout
description = Implements PayPal Checkout in Drupal Commerce checkout.
package = Commerce (PayPal)
dependencies[] = commerce
dependencies[] = commerce_ui
dependencies[] = commerce_payment
dependencies[] = commerce_order
core = 7.x

; PayPal library files.
files[] = lib/PayPalCheckoutClient.php
files[] = lib/PayPalCheckoutExceptions.php

; Information added by Drupal.org packaging script on 2019-05-06
version = "7.x-2.7"
core = "7.x"
project = "commerce_paypal"
datestamp = "1557130694"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* @file
* Remove variables required by Commerce PayPal Checkout.
*/

/**
* Implements hook_uninstall().
*/
function commerce_paypal_checkout_uninstall() {
variable_del('commerce_paypal_checkout_review_embedded_panes');
}
Loading

0 comments on commit 702b7e4

Please sign in to comment.