#chris-g_code

1 messages ¡ Page 1 of 1 (latest)

lunar gobletBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1257765069198987345

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

silver fjord
#
Stripe.StripeConfiguration.ApiKey= ConfigurationManager.AppSettings["Stripe.ApiKey"].ToString();
Stripe.PaymentIntent pi = new Stripe.PaymentIntent();
//string guid = Guid.NewGuid().ToString();
//pi.Id = guid;
pi.Amount = Convert.ToInt32(pq.Amount * 100);
pi.Currency = pq.CurrencyCode;
Stripe.Card card = new Stripe.Card();
card.AddressCity = pq.billingInfo.City;
card.AddressCountry = pq.billingInfo.CountryCode;
card.AddressLine1 = pq.billingInfo.Address1;
card.AddressLine2 = pq.billingInfo.Address2;
card.AddressState = pq.billingInfo.StateCode;
card.AddressZip = pq.billingInfo.PostCode;
card.Country = card.AddressCountry;
card.ExpMonth = pq.cardInfo.ExpireMonth;
card.ExpYear = pq.cardInfo.ExpireYear;
card.Name = pq.cardInfo.CardholderName;
//where do I put pq.cardInfo.AccountNumber? (the credit card number)
//where do I put pq.RefOrderNumber? (merchant order reference number)
long stump
#

Hello! It's unusual to handle raw card numbers directly, as it requires a higher level of PCI compiance. Are you fully PCI compliant to handle raw PANs?

silver fjord
#

yes we've already taken care of that

#
Stripe.CardCreateOptions opts = new Stripe.CardCreateOptions();
long stump
#

I'm not familiar with .NET, but I would expect there to be a card.Number where the PAN would go.

silver fjord
#
opts.AddExtraParam
#

unable to find documentation on this

long stump
#

We don't document this, as raw PAN flows are not recommended.

silver fjord
#

well this is what we need to do

#

it's a call center application taking orders over the phone

long stump
#

Okay, so you're saying card.Number doesn't exist?

silver fjord
#

we were told to use
"To pass undocumented parameters to Stripe using stripe-dotnet you need to use the AddExtraParam() method"

#

however, it's not clear how to do that

long stump
#

Err, sorry.

#

Wrong link, one sec.

silver fjord
#

page not found

long stump
#

That's for Terminal, which is not what you're using.

silver fjord
#

Those examples use curl we need the code in Stripe.Net

#

OK we will write into support

long stump
#

Yeah, the docs I linked to include .NET sample code.

silver fjord
#

which link

#

last one not found

long stump
#

When you get access that link will work.

silver fjord
#

oh I have to be logged in and given access? ok thanks

long stump
#

Yes, that's why you need to contact support, to get access.

silver fjord
#

ok thanks