Hi,@Thibaut Fabrice. Welcome to Microsoft Q&A.
Correct the name below:
First
public double O5rderTotal { get; set; }
To
public double OrderTotal { get; set; }
Second
In the Mango_Order
database, the O5rderTotal
of dbo.OrderHeaders
should also be changed to OrderTotal
.
Third
config.CreateMap<OrderDetailsDto, OrderDetailsDto>().ReverseMap();
To
config.CreateMap<OrderDetails, OrderDetailsDto>().ReverseMap();
Fourth
StripeRequestDto stripeResponseResult = JsonConvert.DeserializeObject<StripeRequestDto>
(Convert.ToString(response.Result));
To
StripeRequestDto stripeResponseResult = JsonConvert.DeserializeObject<StripeRequestDto>
(Convert.ToString(stripeResponse.Result));
Use the correct SecretKey
First
In my test, the SecretKey
in your project seems to be unavailable. I used the SecretKey
on the official website for testing.
"SecretKey": "sk_test_tR3PYbcVNZZ796tH88S4VQ2u"
You could use the above SecretKey
for testing. It is better to get your own SecretKey
from the official website.
Operation Results:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.