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

Registering first payment for Repeat #3

Open
grim-reapper opened this issue Feb 27, 2023 · 3 comments
Open

Registering first payment for Repeat #3

grim-reapper opened this issue Feb 27, 2023 · 3 comments

Comments

@grim-reapper
Copy link

grim-reapper commented Feb 27, 2023

I am using the "createPayment" method to register a payment. I would like to register this payment so that it can be used for repeat payments in the future. In order to do this, Opayo requires certain information to be provided, specifically:

"credentialType": {
   "cofUsage": "First",
   "initiatedType": "CIT",
   "mitType": "Unscheduled",
},

However, I cannot find a place to input these options in the "createPayment" method. I tried adding them as an array in the last parameter, but I received an error message saying that the options were unknown. Could you please let me know how I can add these options correctly?

@judgej
Copy link
Member

judgej commented Mar 5, 2023

Is it repeat payments that you are looking for?

@grim-reapper
Copy link
Author

Partially yes, as I mentioned in my first message to make repeat payment request the first payment should be register along with below options, then later on you can make repeat payment of this transaction. This is mentioned in opayo website as well.

"credentialType": {
   "cofUsage": "First",
   "initiatedType": "CIT",
   "mitType": "Unscheduled",
},

So when I register first payment I have to proved above options, If I don't provide opayo gives error back to provide these options. But I couldn't find place where to put these options when using createPayment method. I hope you understand what I'm trying to say.

@mar7t1n
Copy link

mar7t1n commented Mar 8, 2023

I am doing this directly outside of the library - calling /api/v1/transactions with transactionType=Payment. I found notes that you may need to add 'recurringExpiry', 'recurringFrequency', 'purchaseInstalData'. But none of those worked. We found in the end Opayo API doesn't allow us to recur payments effectively and consistently, most were getting knocked back between Opayo and the Mechant but we couldn't get support to say which settings were necessary. In the end we had to give up and just ask customers to pay their balance if they wish to proceed.

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

No branches or pull requests

3 participants