adebisi-fa / paystack-dotnet

PayStack API for .Net Developers!
http://developers.paystack.co/docs
MIT License
37 stars 37 forks source link

Charge Reference #12

Closed teghoz closed 5 years ago

teghoz commented 5 years ago
var chargeRequest = new CardChargeRequest
                    {
                        Amount = (decimal.Parse(card.amount) * 100).ToString(),
                        Email = card.email,
                        Card = new Card
                        {
                            Cvv = card.cvv,
                            ExpiryMonth = card.expirymonth,
                            ExpiryYear = card.expiryyear,
                            Number = card.cardno
                        },
                        Pin = input.PIN,
                        MetadataObject = chargeCustomData,
                        //CustomFields = customFields
                    };

How does one pass reference for the transaction - https://developers.paystack.co/reference#charge

adebisi-fa commented 5 years ago

Hello @teghoz,

That's surely an omission. The library is currently assuming paystack will auto-generate a reference (as it usually does, if not supplied).

We should be allowed to specify a reference (in situation where we want such to be tracked outside paystack, or something).

Thanks for reporting this.

Would be fixed in a moment (and nuget will be updated, too).

Thanks.

ADEBISI Foluso A. (.Net)

adebisi-fa commented 5 years ago

Fixed in v0.7.4.