Viincenttt / MollieApi

This project allows you to easily add the Mollie payment provider to your application.
MIT License
150 stars 85 forks source link

Missing fields in Mandate API? #385

Closed drlee91 closed 3 months ago

drlee91 commented 3 months ago

Hello,

i want to create a Mandate for the method "directdebit".

MandateRequest mandateRequest = new MandateRequest() { Method = "directdebit", ConsumerName = mollieCustomerResponse.Name, SignatureDate = DateTime.Now, MandateReference = "REF-1234" };

https://docs.mollie.com/reference/create-mandate In the Mollie documentation i have to transmit the fields "consumerAccount" and "consumerBic". For Paypal Mandates i have to add "consumerEmail" and "paypalBillingAgreementId".

The MandateRequest Class only got these fields: public record MandateRequest { public string Method { get; set; } public string ConsumerName { get; set; } public DateTime? SignatureDate { get; set; } public string? MandateReference { get; set; } public bool? Testmode { get; set; } public MandateRequest(); }

How to create the Mandate or how to add these fields?

Best Regards, Lee

martijnmelchers commented 3 months ago

You'll have to use new PayPalMandateRequest() or new SepaDirectDebitMandateRequest() specific constructors

drlee91 commented 3 months ago

You'll have to use new PayPalMandateRequest() or new SepaDirectDebitMandateRequest() specific constructors

Thank you very much!