This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Update Formidable Forms field in entry when payment status of a Pronamic Pay payment is updated. | |
*/ | |
add_action( 'pronamic_payment_status_update_formidable-forms', 'pronamic_pay_update_formidable_forms_entry_payment_status' ); | |
function pronamic_pay_update_formidable_forms_entry_payment_status( $payment ) { | |
/** | |
* Form fields to update with payment status. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function gform_ideal_fulfillment_update_entry( $entry, $feed ) { | |
// Check entry fulfillment. | |
if ( '1' !== $entry['is_fulfilled'] ) { | |
return; | |
} | |
// Get Pronamic payment. | |
$payment_id = gform_get_meta( $entry['id'], 'pronamic_payment_id' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pronamic_pay_rcp_payment_methods_order( $gateways ) { | |
/* | |
* Gateways in preferred order. | |
* | |
* @link https://github.com/wp-pay-extensions/restrict-content-pro/blob/3.0.0/src/Extension.php#L201-L242 | |
*/ | |
$order = array( | |
'pronamic_pay_direct_debit_bancontact', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Prevent double click on MemberPress payment form (#payment-form). | |
* | |
* @return void | |
*/ | |
add_action( 'wp_footer', 'memberpress_prevent_duplicate_payment' ); | |
function memberpress_prevent_duplicate_payment() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add below code to the functions.php file of your WordPress theme and set date range in `$auto_complete_period`. | |
/** | |
* Pronamic Pay auto complete recurring payments within period. | |
*/ | |
add_filter( 'wp_insert_post_data', 'pronamic_pay_recurring_payment_zero_amount', 9, 2 ); | |
function pronamic_pay_recurring_payment_zero_amount( $data, $postarr ) { | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gravity Forms successful payment confirmation based on entry. | |
*/ | |
add_filter( 'gform_confirmation', 'pronamic_gform_confirmation', 10, 4 ); | |
function burometa_gform_confirmation( $confirmation, $form, $entry, $ajax ) { | |
// Setup. | |
$field_id = 14; | |
$field_value = 'recurring'; | |
$custom_confirmation_id = '5c1b68379fc8x'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Update MemberPress transaction number. | |
* | |
* @param \Pronamic\WordPress\Pay\Payments\Payment $payment Payment. | |
* @retun void | |
*/ | |
function update_mepr_transaction_number( $payment ) { | |
// Check payment source. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'pronamic_payment_status_update', 'pronamic_pay_wc_order_cancel', 15 ); | |
/** | |
* Cancel WooCommerce order on cancelled Pronamic Pay payment. | |
* | |
* @param Payment $payment Payment. | |
* @return void | |
*/ |
NewerOlder