#Marco Slanzi-Intents

1 messages · Page 1 of 1 (latest)

thorny flame
#

👋 happy to help

#

could you please share some examples?

short cosmos
#

The part of code is this

            var service = new PaymentIntentService();
            var options = new PaymentIntentCreateOptions
            {
                Amount = totalvalue,
                Currency = "eur",
                Customer = customerid,
                PaymentMethod = paymentmethodid,
                Confirm = true,
                OffSession = true,
                Metadata = new Dictionary<string, string> {
                    { "id", myorderid },
                    { "paymentId", paymentId },
                    { "cultureCode", langid }
                },
            };
            var result = service.Create(options);

I am using setup intent for scheduled payments with variable values

#

And it is included in a hourly cycle

#

This part of code is for a planned payment

thorny flame
#

sorry my bad, I meant Payment Intent Ids or request Ids

short cosmos
#

duplicated pament intents are
pi_3LOVlTALTzXeHOEZ1ugPgijD
pi_3LOVlLALTzXeHOEZ1FgGwvqe

i have received only the second one

#

It is enough to send idempotency key based on my transaction id?

thorny flame
#

yes idempotency keys are really helpful

short cosmos
#

What is the default value for maxNetworkRetries configuration?

#

Probably the library has sent another request because the response was not complete.
Even if I have received it from my logs

polar marlin
short cosmos
#

ok, so I can maintain that and add my idempotency key in the request
Is it correct?

#

Or it was added automatically

polar marlin
#

The idempotency key will be the same for the retries yes. The library will handle that

short cosmos
#

Ok, last question

is it possibile for a customer to add us only to view logs and developer area in the dashboard?

polar marlin
short cosmos
#

Developer roles

Can be enough?

polar marlin
#

Up to you!

short cosmos
#

Ok, so our customers can add us safely, thanks for all at the moment