#chris-g_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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)
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?
yes we've already taken care of that
Stripe.CardCreateOptions opts = new Stripe.CardCreateOptions();
I'm not familiar with .NET, but I would expect there to be a card.Number where the PAN would go.
We don't document this, as raw PAN flows are not recommended.
well this is what we need to do
it's a call center application taking orders over the phone
Okay, so you're saying card.Number doesn't exist?
not in Stripe.Net API
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
Do you have access to this documentation? ~~https://docs.corp.stripe.com/payments/payment-intents/moto~~
Err, sorry.
Wrong link, one sec.
You need to write in to support, let them know you're build a MOTO integration, and request access to MOTO functionality and documentation on your account: https://support.stripe.com/contact/email
That's for Terminal, which is not what you're using.
Those examples use curl we need the code in Stripe.Net
OK we will write into support
Yeah, the docs I linked to include .NET sample code.
These, which you don't have access to yet: https://docs.stripe.com/payments/payment-intents/moto
When you get access that link will work.
oh I have to be logged in and given access? ok thanks
Yes, that's why you need to contact support, to get access.
ok thanks