I'm impressed...
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
Cool - thanks - been looking for a simple way to take payments for a web site. Any gotchas at all?
Keep your friends close. Keep Kill your enemies closer. The End
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
Some days ya just wanna live forever.
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
Mollie is famous, there is even a song about her: The Dubliners Molly Malone - YouTube[^] :rolleyes:
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
It's refreshing to see a positive review every now and then!..oh, and Happy Belated Birthday! :laugh: It's also refreshing to work with a new API and 'it just works'...even better when it exceeds your expectations! Good to hear! :)
"Go forth into the source" - Neal Morse
-
It's refreshing to see a positive review every now and then!..oh, and Happy Belated Birthday! :laugh: It's also refreshing to work with a new API and 'it just works'...even better when it exceeds your expectations! Good to hear! :)
"Go forth into the source" - Neal Morse
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
Cool - thanks - been looking for a simple way to take payments for a web site. Any gotchas at all?
Keep your friends close. Keep Kill your enemies closer. The End
This is what I found, nothing serious, but it'll get you started. Before you start, make sure you actually set at least one payment method in your profile or you'll get an exception from the web API "no payment methods found" (which is fairly descriptive, except when you're completely new). Also, when you create a payment you get a response with some URL's, one of those is the URL that your users should visit to complete their payment, but you're responsible for redirecting the user (which makes sense, because their web API can't do it for you). The docs don't mention this very explicitly. And you get updates on your payments through an optional webhook. I haven't tried it yet, but I do want to implement it, but the problem is that your localhost can't accept HTTP requests from Mollie, so you'll need to run this code on a server that can. I plan on creating a simple Azure Function that updates my dev database, so I can make a request on my localhost, get an update on Azure, but still see the change on localhost. The docs do mention this problem with webhooks. Here's my very first try-out code for Mollie, almost worked on the first try. Without the webhook for updates.
public async Task Pay()
{
using (var client = new HttpClient())
{
var id = Guid.NewGuid().ToString();
var request = new
{
amount = new
{
currency = "EUR",
value = "1.00"
},
description = "Test payment",
redirectUrl = $"https://localhost:[port]/OrderCompleted?id={id}",
metadata = new
{
id
}
};
var json = JsonConvert.SerializeObject(request);
var content = new StringContent(json, Encoding.UTF8, "application/json");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "test_[your code]");
var response = await client.PostAsync("https://api.mollie.com/v2/payments", content);
var responseContent = await response.Content.ReadAsStringAsync();
if (response.IsSuccessStatusCode)
{
string url = JsonConvert.DeserializeObject(responseContent)._links.checkout.href;
return Redirect(url);
}
}
return Ok();
}There's also an third party library, but for me it doesn't get much more difficult than this so I don't need it :)
Best, Sander
-
It's refreshing to see a positive review every now and then!..oh, and Happy Belated Birthday! :laugh: It's also refreshing to work with a new API and 'it just works'...even better when it exceeds your expectations! Good to hear! :)
"Go forth into the source" - Neal Morse
kmoorevs wrote:
oh, and Happy Belated Birthday
Thanks :D
kmoorevs wrote:
It's also refreshing to work with a new API and 'it just works'
Until today I thought of this as a fairy tale :laugh:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
Well, I am annoyed that they named their service after my dog! :mad: ...and they misspelled it as well! :doh:
- I would love to change the world, but they won’t give me the source code.
Why did you name your dog after a payment service and spelled it wrong? :confused:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
This is what I found, nothing serious, but it'll get you started. Before you start, make sure you actually set at least one payment method in your profile or you'll get an exception from the web API "no payment methods found" (which is fairly descriptive, except when you're completely new). Also, when you create a payment you get a response with some URL's, one of those is the URL that your users should visit to complete their payment, but you're responsible for redirecting the user (which makes sense, because their web API can't do it for you). The docs don't mention this very explicitly. And you get updates on your payments through an optional webhook. I haven't tried it yet, but I do want to implement it, but the problem is that your localhost can't accept HTTP requests from Mollie, so you'll need to run this code on a server that can. I plan on creating a simple Azure Function that updates my dev database, so I can make a request on my localhost, get an update on Azure, but still see the change on localhost. The docs do mention this problem with webhooks. Here's my very first try-out code for Mollie, almost worked on the first try. Without the webhook for updates.
public async Task Pay()
{
using (var client = new HttpClient())
{
var id = Guid.NewGuid().ToString();
var request = new
{
amount = new
{
currency = "EUR",
value = "1.00"
},
description = "Test payment",
redirectUrl = $"https://localhost:[port]/OrderCompleted?id={id}",
metadata = new
{
id
}
};
var json = JsonConvert.SerializeObject(request);
var content = new StringContent(json, Encoding.UTF8, "application/json");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "test_[your code]");
var response = await client.PostAsync("https://api.mollie.com/v2/payments", content);
var responseContent = await response.Content.ReadAsStringAsync();
if (response.IsSuccessStatusCode)
{
string url = JsonConvert.DeserializeObject(responseContent)._links.checkout.href;
return Redirect(url);
}
}
return Ok();
}There's also an third party library, but for me it doesn't get much more difficult than this so I don't need it :)
Best, Sander
Super cool! Thanks. :thumbsup:
Keep your friends close. Keep Kill your enemies closer. The End
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
I'm working on a website for a client and at some point a visitor is going to have to pay. I've never done this before, so I was kind of saving this for last. Then the customer said they wanted to use Mollie, a payment platform. So I just took a look at it, created an account, and within an hour I created a test payment. They even have a test token so I don't have to transfer real money and instead I can pick my payment method and select the status I want returned (failed, pending, done, etc.) so I can test all scenario's. Here's something I never thought I'd say, but their documentation is actually pretty useful and they return meaningful error messages. Switching to real payments should be as easy as changing the token. I'm in no way affiliated with Mollie and as a consumer I hate these kind of platforms because they usually make me pay to pay, but this has been the easiest third-party integration I've ever had. Of course I've only used it for an hour and they haven't suddenly changed their entire API without notice yet, but so far I'm genuinely impressed :thumbsup:
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
Authorize.Net was very easy to setup too. At least to me ;P
-
Authorize.Net was very easy to setup too. At least to me ;P
It doesn't have The Netherlands most used payment type, iDeal :)
Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
Cool - thanks - been looking for a simple way to take payments for a web site. Any gotchas at all?
Keep your friends close. Keep Kill your enemies closer. The End
wow you can enjoy music while running or swimming through best bone conduction headphones 2019