Skip to content
This repository was archived by the owner on Nov 2, 2022. It is now read-only.

Commit 81f4654

Browse files
committed
new placeholder @credit_card@
1 parent 7f5c5ea commit 81f4654

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

GFDibsHook.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ function getPlaceholders
381381
@amount@
382382
@date_created@
383383
@ticket@
384+
@credit_card@
384385
@firstname@
385386
@lastname@
386387
@email@
@@ -395,12 +396,15 @@ public static function getPlaceholders( $Transaction, $feed){
395396

396397
$placeholders = array();
397398

399+
// _log('get placeholders');
400+
// _log($Transaction);
398401
// parse placeholders
399402
$placeholders['order_id'] = $Transaction->order_id;
400403
$placeholders['transaction_id'] = $Transaction->transaction_id;
401404
$placeholders['amount'] = (int)$Transaction->amount/100;
402405
$placeholders['date_created'] = $Transaction->date_created;
403406
$placeholders['ticket'] = $Transaction->ticket;
407+
$placeholders['credit_card'] = ( isset($Transaction->paytype) ) ? $Transaction->paytype : null;
404408

405409
$placeholders['firstname'] = null;
406410
$placeholders['lastname'] = null;
@@ -425,6 +429,7 @@ public static function getPlaceholders( $Transaction, $feed){
425429
return $placeholders;
426430
}
427431

432+
428433
public static function replacePlaceholders( $message, $placeholders ){
429434
foreach ($placeholders as $key => $value) {
430435
$message = str_replace('@'.$key.'@', $value, $message);

gravityformsdibs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Gravity Forms DIBS
44
Plugin URI: http://nettbutikk.mediebruket.no
55
Description: DIBS add-on for Gravity Forms. Supports D2 and DX platform.
6-
Version: 1.3.2
6+
Version: 1.3.3
77
Author: Mediebruket
88
Author URI: http://mediebruket.no
99
*/

0 commit comments

Comments
 (0)