Skip to content

Commit

Permalink
Update osen-wc-mpesa.php
Browse files Browse the repository at this point in the history
  • Loading branch information
maukoese authored Aug 8, 2018
1 parent 19e01f2 commit 77c9c88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions osen-wc-mpesa.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://wc-mpesa.osen.co.ke/
* Description: This plugin extends WordPress and WooCommerce functionality to integrate MPesa for making and receiving online payments.
* Author: Osen Concepts Kenya < [email protected] >
* Version: 1.7.8
* Version: 1.8.8
* Author URI: https://osen.co.ke/
*
* Requires at least: 4.4
Expand Down Expand Up @@ -305,7 +305,7 @@ public function init_form_fields()
'type' => 'select',
'options' => array(
/**1 => __( 'MSISDN', 'woocommerce' ),*/
4 => __( 'Paybill', 'woocommerce' ),
4 => __( 'Paybill Number', 'woocommerce' ),
2 => __( 'Till Number', 'woocommerce' )
),
'description' => __( 'MPesa Identifier Type', 'woocommerce' ),
Expand Down Expand Up @@ -577,7 +577,7 @@ public function process_payment( $order_id )
'BusinessShortCode' => $this->mpesa_headoffice,
'Password' => $password,
'Timestamp' => $timestamp,
'TransactionType' => ( $this->get_option('idtype') == 4 ) ? 'CustomerPayBillOnline' : 'BuyGoodsOnline',
'TransactionType' => ( $this->get_option('idtype') == 4 ) ? 'CustomerPayBillOnline' : 'CustomerBuyGoodsOnline',
'Amount' => round( $total ),
'PartyA' => $phone,
'PartyB' => $this->mpesa_shortcode,
Expand Down Expand Up @@ -649,7 +649,7 @@ public function process_payment( $order_id )
update_post_meta( $post_id, '_receipt', '' );
update_post_meta( $post_id, '_order_status', 'on-hold' );

$this->instructions .= '<p>Awaiting MPesa confirmation of payment from '.$phone.' for request '.$request_id.'. Check your phone for the STK Prompt.</p>'
$this->instructions .= '<p>Awaiting MPesa confirmation of payment from '.$phone.' for request '.$request_id.'. Check your phone for the STK Prompt.</p>';

// Return thankyou redirect
return array(
Expand Down

0 comments on commit 77c9c88

Please sign in to comment.