Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generic payment method not mapped yet #67

Closed
mariav0 opened this issue Jun 5, 2023 · 7 comments · Fixed by #68
Closed

generic payment method not mapped yet #67

mariav0 opened this issue Jun 5, 2023 · 7 comments · Fixed by #68

Comments

@mariav0
Copy link
Contributor

mariav0 commented Jun 5, 2023

When using generic payment method (in german "generisches Zahlungsverfahren") an error occurs:

"Payment method could not be matched to existing payment instrument."

I am not a developer. So I am not sure if it would be enough to add some lines here: https://github.com/systopia/de.systopia.twingle/blob/master/CRM/Twingle/Profile.php

  public static function paymentInstruments() {
    return [
      'pi_generic' => E::ts('Generic Payment Method'),
    ];
  }

  public static function createDefaultProfile($name = 'default') {
    return new CRM_Twingle_Profile($name, [
     'pi_generic'  => NULL,
      ],
    ]
  }

Is there anything else needed?
@MarcMichalsky: Would you have time to have a look on this issue with me?

@MarcMichalsky
Copy link
Contributor

Right now I don't know what exactly the generic payment method means. I do see that it can be activated by Twingle support, but I have no idea what it actually is. And it was never mentioned to me by Twingle either.

Assuming that the generic payments end up at Twingle and later on your bank account in some way, we would need to add the generic payment method in some places in the code, to create a setting to map them in CiviCRM (to define payment instrument and status).

First we need to find out if it is always called generic in the transfer (like paypal or sofortueberweisung).

Do you use CiviProxy? If so, could you search the logs and tell me what exactly was transferred by Twingle?
Alternatively, could you download your transactions as CSV in TwingleMANAGER and tell me what is written in the payment_method field?

@mariav0
Copy link
Contributor Author

mariav0 commented Jun 5, 2023

Hi @MarcMichalsky,

First of all, thanks for your quick response.

The generic payment method is more a relic, which was used for a while for crowdfunding. But rather experimental and not for productive use.
We only have one customer who would like to use this method for monthly bank transfers which is not an official option that twingle offers. But I talked to Oliver (from twingle) and they agree that it could be used therefore.

I do not use CiviProxy but I have downloaded the CSV and the entry in the payment_method field is generic.

@MarcMichalsky
Copy link
Contributor

Then we would just have to add generic, as was done here 6132e7a, 945992d.

@MarcMichalsky
Copy link
Contributor

If you create a PR, I will be happy to test it in my test environment.

@mariav0
Copy link
Contributor Author

mariav0 commented Jun 5, 2023

Perfect, thank you. Here you go: #68

@jensschuppe
Copy link
Collaborator

I'd like to have some clarification on what the generic payment method actually is. Twingle have not documented or mentioned that payment instrument. Maybe @webworka could shed some light?

@webworka
Copy link

@jensschuppe Sure, no problem. As @mariav0 mentioned above:

The generic payment method is more a relic, which was used for a while for crowdfunding. But rather experimental and not for productive use.

That's basically it. We used this in the past for two or three customers that want to collect userdata for crowdfunding campaigns and do the payment later on. Customers can set theire own icon and name for this "payment" method. In most cases this was used for banktransfer or standing orders.
At the moment there is only one customer that uses it for standing orders. That is the only useful case I can think of at the moment. So mapping this to banktransfer as payment method will be correct in 99% of the cases.

@jensschuppe jensschuppe linked a pull request Jul 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants