Add option to get used payment method
-
Dear plugin developer,
At this moment the plugin doesn’t store the used payment method in the entry.
Instead, it’s saving the string ‘Mollie’ as the used payment method.
This is the payment provider, and not the method.I’ve got a few ideas for how to add the payment method to the entry.
Option 1:
Add an action after retreiving the payment details so users can perform their own action there.class-fg-mollie-.php
public function callback()
Line 367do_action( 'gform_mollie_payment_retreived', $entry, $payment );Option 2:
Pass the payment method to the payment_method parameter, instead of the payment provider name.class-fg-mollie-.php
public function callback()
Line 381`
$action[‘payment_method’] = $payment->method;
`
And could could still pass the payment provider using the following (just before returning the $action):gform_update_meta( $entry['id'], 'payment_provider', 'Mollie');I hope this can help you, if any more information is required feel free to ask!
have a nice weekend!Menno
The topic ‘Add option to get used payment method’ is closed to new replies.