can I integrate my own payment gateway

sheena1
Shopify Partner
4 0 2

My company is quite far along with the development of a payment gateway. We have worked with local banks to build something that is secure and cheap to use. We have a basic checkout api that can be incorperated into home grown online stores and we want to turn it into a shopify plugin. Does that sound possible? I've been looking at the docs and I havent found anything that looks like it'll work without a bit of a hack.

From what I've seen in the dev docs so far I have an idea... 

  1.  monitor checkout id and value using a webhook. This stuff would then be stored in my db
  2.  Put a button on the shopify checkout page that, when clicked, opens up a new window directed to our system. This page would be primed with the checkout id so we would be able to know how much the user should pay etc.
  3. Once the user has paid then we send something to shopify to say that a certain amount of money has been paid to a specific checkout. 
  4. Shopify (hopefuly) updates the checkout page to tell the user that the payment has been registered

So... am I on the right track? Is this possible? Is there anything specific in the docs I should be aware of? 

I'll appreciate any assistance I can get here.

Replies 45 (45)
Jordan
Shopify Staff
Shopify Staff
300 3 74

Hey Sheena,

Have you had the opportunity to learn about our Hosted Payment SDK? The Hosted Payment SDK allows you to integrate your hosted payment page with Shopify's checkout. All Hosted Payment SDK integrations are based on a full page redirect on the final payment step of Shopify's checkout through a standardized interface available to third party payment providers.

Let me know if this is something you might be interested in!

 

- Jordan

Jordan | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sheena1
Shopify Partner
4 0 2

Looks perfect. Thanks for the quick reply 🙂 

sheena1
Shopify Partner
4 0 2

I think either I've done something horribly wrong or the docs are out of date. I'm stuck on step 2 here.

https://help.shopify.com/api/sdks/hosted-payment-sdk/adding-gateway

The link I'm supposed to click on doesn't exist... I've looked around a bit and I cant find any equivalent link 

Jordan
Shopify Staff
Shopify Staff
300 3 74

Hey Sheena,

I'm sorry for the confusion! You need to become a Shopify Partner with Payment Privileges first. If you don't mind emaling me your partner account email, I can set that up for you. 

- Jordan

Jordan | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sheena1
Shopify Partner
4 0 2

Thanks Jordan 🙂

Eunsang_Lee
New Member
2 0 0

Hi Jordan,

This thread looks like the information I am looking for, but just needs a bit of assurance. So in my case, I am working on a web app with customers located in Korea. Korean payment processing system is very strict, so I must follow their requirements. For instance, when we click a "Pay Now" button, it needs to call a function something like this:

```

IMP.request_pay({

  pg : 'inicis',

  pay_method : 'card',

  merchant_uid : 'merchant_' + new Date().getTime(),

  name : 'foo',

  amount : 14000,

  buyer_email : 'iamport@siot.do',

  buyer_name : 'jon',

  buyer_tel : '010-1234-5678',

  buyer_addr : '2 college street',

  buyer_postcode : '123-456',

  m_redirect_url : 'https://www.yourdomain.com/payments/complete'

}, function(rsp) {

  if ( rsp.success ) {

    var msg = 'Order completed.';

    msg += 'unique id : ' + rsp.imp_uid;

    msg += 'shop id : ' + rsp.merchant_uid;

    msg += 'pricing : ' + rsp.paid_amount;

    msg += 'card auth num : ' + rsp.apply_num;

} else {

    var msg = 'Error failed.';

    msg += 'Error message : ' + rsp.error_msg;

}

  alert(msg);

});

```

So I could store information received from callback function to work with Shopify API. I looked for documentation regarding payment gateway, and it looks like I cannot manually set it up. And it seems that Hosed Payment SDK is the only choice I could try. Am I completely wrong on this? I'd love to use dashboard, cms to upload products, and analytics, carts, etc. 

Looking forward to hearing from you!

Jordan
Shopify Staff
Shopify Staff
300 3 74

Hey Eunsang, 

Yes, the Hosted Payment SDK would be your only solution to work with Shopify checkout and a third-party gateway. Essentially, when a customer submits payment from Shopify, they would be redirected to your server with the following request values stored in the body of the request. You would then execute the IMP.request_pay function and redirect back to Shopify checkout using x_url_complete when payment was completed. 

 

- Jordan

Jordan | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Eunsang_Lee
New Member
2 0 0

Great help, Jordan! Thanks for support. ?

Michael_Alvarez
New Member
1 0 0

Hi Jordan, we are located in Costa Rica and we need to integrate a third-party payment gateway of our country with my shopify site. I have all the documentation to my payment gateway's API. Is Hosted Payment SDK aviable, because it has a note:  "Caution: Access to the Hosted Payment SDK is closed. We are no longer accepting new integrations." Why is that? The country like our have no other option to proceess the credit card payment automactly.

I will apreciated any help,
Mike

Nistor_Ciprian
New Member
3 0 0

Hi, the problem is i have shopify partner account and working on it for some time but for some reason, i cannot create a Hosted Payment SDK, is this service stopped? I have a lot of request for the custom payment gateway and now we are all stuck?

Jordan
Shopify Staff
Shopify Staff
300 3 74

Hey Nistor, 

Did you previously have access to the Hosted Payments SDK? 

 

- Jordan 

Jordan | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

yj
Shopify Partner
2 0 0

Looks like the SDK has been deprecated or otherwise cancelled. Is there another way to integrate payments gateways in the pipeline?

Gaston_Ramirez
New Member
1 0 0

Hi Jordan,

i have a partner account and gateways section activated to develop a Hosted Payment SDK.

Can i develop it ?  i have a customer ready to start a new payment gateway

rost
Shopify Partner
1 0 0

Jordan: Is this option gone or can i still use my own payment gateway?

Kalaiarasan_See
New Member
3 0 0

How to create my own payment gateway offsite . Kindly guide me ...

Attila_Hofferek
Shopify Partner
1 0 0

Could someone help, how can I integrate a payment gateway instead of this closed payment SDK?

Pablo2
Shopify Partner
1 0 0

Hi Jordan, I have the same problem, I´m stuck on step two so I´m guessing I need to have Payment Privileges, how do I get them?

Thanks!

Alex_Korsakov
New Member
14 0 0

up!

Need to integrate custom payment method for cards... How can we do it now if there's no Hosted SDK anymore?

Neo1
New Member
4 0 0

Hello Jordan

 

Hosted Payment SDK is closed, May I ask if this can be regained? Or there are other ways to add gateway to shopify payment. The guest has got the api from the bank but I do not know how to assist him concatenate the shopify payment system right now.