<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ziyad Parekh on Medium]]></title>
        <description><![CDATA[Stories by Ziyad Parekh on Medium]]></description>
        <link>https://medium.com/@zparekh?source=rss-52bc5c9d9247------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hUNO1DzJarAbGHlF.jpg</url>
            <title>Stories by Ziyad Parekh on Medium</title>
            <link>https://medium.com/@zparekh?source=rss-52bc5c9d9247------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 18:25:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zparekh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Safepay Checkout for Mobile Apps]]></title>
            <link>https://medium.com/safepay/safepay-checkout-for-mobile-apps-3dff67a16e0d?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dff67a16e0d</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 05:06:19 GMT</pubDate>
            <atom:updated>2020-09-19T05:06:19.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C2trjHoa0u6v2iBK" /><figcaption>Photo by <a href="https://unsplash.com/@robinvanderploeg?utm_source=medium&amp;utm_medium=referral">Robin van der Ploeg</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Today we’re excited to announce support for our newest source— mobile. Along with woocommerce, shopify, opencart and more, mobile will be especially useful for developers looking to integrate the Safepay Checkout experience in their native mobile applications — be they iOS or Android, written in Swift, Java or even React Native.</p><p>In order to take advantage of this source in your applications, there are a few steps you’d need to follow. But on the whole, it’s extremely easy to integrate.</p><p>When constructing your Safepay checkout url, set the `source` param to mobile. For example in javascript you could do this:</p><pre>import querystring from &quot;query-string&quot;;</pre><pre>const params = {<br>  beacon: &quot;tracker_from_async_request&quot;,<br>  order_id: &quot;you-internal-order-id&quot;,<br>  source: &quot;mobile&quot;<br>};</pre><pre>// get the base url based on the environment<br>// you&#39;re integrating against<br>const baseURL = process.env.ENVIRONMENT === &quot;PRODUCTION&quot; ?<br>  &quot;<a href="https://api.getsafepay.com/components">https://api.getsafepay.com/components</a>&quot; : &quot;<a href="https://sandbox.api.getsafepay.com/components">https://sandbox.api.getsafepay.com/components</a>&quot;;</pre><pre>// url encode the params<br>const qs = queryString.stringify(params);<br>// construct the checkout url<br>const checkoutUrl = `${baseURL}?${qs};</pre><pre>// redirect user to this url<br>return checkoutUrl</pre><p>One thing you’ll notice is that for mobile integrations the query params on the checkout url do not require redirect_url or cancel_url. This is because since the Safepay Checkout experience will be rendered inside a WebView, there isn’t a need for redirecting to an external website if your customer cancels or completes the payment. More on this below.</p><p>We recommend you construct the URL server side, but it can also be constructed within your app once your customer clicks the “Checkout” button.</p><p>Once you’ve constructed your URL, it’s time to pass it to the WebView for rendering. I’ll use pseudo `react-native` for code examples but the same ideas can be extrapolated to other languages like Swift and Java.</p><p>Assuming you’re using the react-community <a href="https://github.com/react-native-community/react-native-webview">WebView</a>, you can construct it like so:</p><pre>renderWebView = () =&gt; {<br>  return &lt;WebView<br>    // The main ones<br>    source={{ uri: &#39;THE CHECKOUT URL&#39; }} <br>    onNavigationStateChange={this.onNavigationStateChange}</pre><pre>// Extra props<br>    ref={WEBVIEW_REF}<br>    onError={this.onError}<br>    onMessage={this.handleMessage}<br>    domStorageEnabled={true}<br>    javaScriptEnabled={true}<br>    javaScriptEnabledAndroid={true}<br>    style={{flex: 1}}<br>  /&gt;<br>};</pre><p>The main props to take note off are source and onNavigationStateChange.</p><p>Now we get to why the initial Safepay Checkout params don’t require either the redirect_url or cancel_url params. When your customer cancels the payment, Safepay mark the transaction cancelled and navigate the user to /mobile?action=cancelled&amp;order_id=&lt;the-order-id&gt;. If your customer completes the payment, Safepay will redirect your customer to /mobile?action=complete&amp;….</p><p>Now the onNavigationStateChange prop comes in handy. In you application where you define the handler for this prop you can use this logic to handle both cancel and success steps:</p><pre>onNavigationStateChange = (event) =&gt; {<br>  const url = event.url<br>  <br>  // If the customer has not been redirected to <br>  // /mobile yet (meaning he has neither completed<br>  // or cancelled the payment) do nothing.<br>  if (url.indexOf(&quot;/mobile&quot;) === -1) {<br>    return;<br>  }</pre><pre>// Get the query params as a string<br>  const params = url.split(?)[1]<br>  // parse the query string using the<br>  // npm package <br>  // <a href="https://github.com/sindresorhus/query-string">https://github.com/sindresorhus/query-string</a><br>  const parsed = queryString.parse(params);</pre><pre>if (parsed.action === &quot;cancel&quot;) {<br>    // close the webview since the customer<br>    // cancelled the payment</pre><pre>return;<br>  }</pre><pre>if (parsed.action === &quot;complete&quot;) {<br>    // the customer completed the payment,<br>    // you should close the WebView and then<br>    // asynchronously call your server to <br>    // mark the payment complete.</pre><pre>// Additionally, the params will include<br>    - tracker<br>    - reference<br>    - token<br>    - signature<br>  }<br>};</pre><p>In words, if your customer cancels the payment, you should simply close the WebView and take them back to your app’s checkout page. Optionally, you can take the order_id from the parsed params:parsed.order_id and mark the payment cancelled on your backend.</p><p>If they complete the payment however, you should first close the webview. After the webview is closed, you should asynchronously make a request to your backend to mark the payment complete and pass the params as well. The params on a successful payment will contain the following:<br>- tracker — This is the tracker token<br>- reference — This is the 6 digit transaction reference number<br>- token — This is the transaction token<br>- sig — This is the transaction signature<br>- order_id — This is your internal order id</p><p>You should pass these params back to your server to mark the order complete. You should also verify the signature to make sure the transaction is authentic. To learn more about Transaction verification, please check out our blog post on <a href="https://medium.com/safepay/transaction-integrity-b91a0f90010b">Transaction Integrity</a></p><p>We’ll be releasing native SDKs for iOS, Android and React Native in the near future so watch out for those! But in the meantime, if you’re an engineer and you think you have what it takes try integrate Safepay by following this guide. If you have any questions, please feel to reach out to <a href="/service/mailto:integrations@getsafepay.com">integrations@getsafepay.com</a> or feel free to leave a comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dff67a16e0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/safepay-checkout-for-mobile-apps-3dff67a16e0d">Safepay Checkout for Mobile Apps</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Third-party transaction details gets first-class support]]></title>
            <link>https://medium.com/safepay/third-party-transaction-details-gets-first-class-support-9ebe00ace0c0?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ebe00ace0c0</guid>
            <category><![CDATA[pakistan]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Mon, 15 Jun 2020 00:42:29 GMT</pubDate>
            <atom:updated>2020-09-03T03:28:21.927Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7TUBuwHYdz5MuiRt" /><figcaption>Photo by <a href="https://unsplash.com/@northfolk?utm_source=medium&amp;utm_medium=referral">NORTHFOLK</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>All of our power users on Safepay utilize various third party services to keep track of their data along with using Safepay to monitor their financial health. We recently introduced support for merchants to surface third party order information from various sources on their Safepay dashboards. You can read more about that announcement over <a href="https://medium.com/safepay/more-flexibility-with-safepay-6c2c1b42d2a2">here</a>. But today we’re excited to take that functionality even further and make third party order information a first class citizen within Safepay itself.</p><p>Starting today merchants, store owners and their team members will be able to search for payments using third party order information as well as reconcile payments made on Safepay with accepted orders on their e-commerce platform of choice. This means that whether you run your store on <a href="https://safepay.helpscoutdocs.com/article/61-how-to-set-up-safepay-checkout-for-shopify">Shopify</a>, <a href="https://safepay.helpscoutdocs.com/article/29-how-to-set-up-safepay-for-woocommerce">Wordpress</a>, <a href="https://safepay.helpscoutdocs.com/article/64-how-to-setup-safepay-checkout-for-opencart">OpenCart</a> or <a href="https://github.com/getsafepay/safepay-magento2-plugin">Magento</a>, you can now search for payments made by your customers using the platform specific order id. Not only that, if you wish to reconcile payments received with orders accepted in a bulk fashion, you can export your transaction data and view the individual order ids in Excel.</p><h4>How to search for payments with an order id</h4><p>To search for payments using an Order ID, simply login to your Safepay dashboard, click on the payments tab and from the search dropdown select “Order ID”. Paste in your external order id number and hit enter. If Safepay has captured a payment with this Order ID, you’ll see a result. Check out this short video demonstration that shows you how it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*90C_aWCYmaPKMsI4xofAXQ.gif" /><figcaption>search by order id</figcaption></figure><h4>How to export transaction level data</h4><p>Starting today merchants can export a second report from the transaction tab that details all captured transactions along with their associated order id and source. This report can help reconcile orders in your e-commerce platform with payments made by your customers through Safepay. Check out this short video demonstration to understand how it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*yW_8c6M0pS00-sOeTtu_1w.gif" /></figure><h4>Conclusion</h4><p>We’re always listening to our merchants for valuable feedback to help improve our product. This feature is a result of our determination to be a customer centric company at our core in everything to do from providing premium support, custom development and above all a world class service that lives up to our own high expectations. Thank you for choosing Safepay and if there’s something you have in mind that would help improve the product, please get in touch!</p><p>If you haven’t joined the 200 plus merchants using Safepay to power their online businesses, feel free to follow <a href="https://safepay.helpscoutdocs.com/article/50-starting-with-safepay-step-by-step-guide">this</a> guide and get started. It’s totally free and we’ll guide you every step of the way!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ebe00ace0c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/third-party-transaction-details-gets-first-class-support-9ebe00ace0c0">Third-party transaction details gets first-class support</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[More flexibility with Safepay]]></title>
            <link>https://medium.com/safepay/more-flexibility-with-safepay-6c2c1b42d2a2?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c2c1b42d2a2</guid>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[pakistan]]></category>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Sat, 09 May 2020 20:00:56 GMT</pubDate>
            <atom:updated>2020-05-09T20:00:56.992Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-OCm9n10yMD4VvTu" /><figcaption>Photo by <a href="https://unsplash.com/@volkanolmez?utm_source=medium&amp;utm_medium=referral">Volkan Olmez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://www.getsafepay.com/">Safepay</a> is designed to be the fastest way for ambitious businesses to start accepting payments on their websites or to send one-off invoices to their clients. Companies such as <a href="https://wearego.com/row/">Ego</a>, <a href="https://kitchencuisine.com.pk/">Kitchen Cuisine</a>, <a href="https://allmytech.pk/">AllMyTech</a>, <a href="https://smartchoice.pk/">Smartchoice</a> and <a href="https://www.findmyadventure.pk/">Find My Adventure</a> use Safepay so they can focus on their core businesses instead of building and maintaining highly available and compliant payments infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pITk_IuC2okVG3OpsiGgg.png" /></figure><p>Over the past few months, we’ve added several new features to our dashboard as well as introduced support for more popular e-commerce platforms that these businesses rely on. These days businesses have the option to integrate Safepay in a variety of ways including but not limited to:</p><ul><li><a href="https://github.com/getsafepay/safepay-woocommerce">Safepay for Wordpress/Woocommerce</a></li><li><a href="https://github.com/getsafepay/safepay-magento2-plugin">Safepay for Magento 2x</a></li><li><a href="https://github.com/getsafepay/safepay-magento-19-plugin">Safepay for Magento 1.9</a></li><li><a href="https://github.com/getsafepay/safepay-opencart-3-plugin">Safepay for OpenCart</a></li><li><a href="https://safepay.helpscoutdocs.com/article/61-how-to-set-up-safepay-checkout-for-shopify">Safepay for Shopify</a></li></ul><p>All of these integrations, while running on separate third-party platforms, have been designed and developed to be deeply integrated into Safepay’s core payments stack — for example, after every successful payment, our plugins will save Safepay specific transaction information with the order generated on the specific platform your business is running on.</p><h3>So what’s new?</h3><p>While the information stored by Safepay in your e-commerce websites admin dashboard helps with reconciling a payment with an order, many merchants have asked us to support the reverse reconciliation process: storing the associated e-commerce order identifier with the associated payment on the Safepay dashboard.</p><h4>You spoke and we listened</h4><p>Starting today, if you’re a business that has integrated Safepay with one of our supported plugins listed above or have integrated Safepay directly with our API, you will now start to see the <strong>source</strong> and <strong>order id</strong> of each payment on the payment details page.</p><p>The official sources we currently support are: woocommerce , shopify , opencart, magento, magento2 and custom .</p><h4>What it looks like</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JuFXk8F0io2uVP4MgV0o4g.png" /></figure><p>Navigate to the payment details page for any payment you’re interested in digging into. To learn how to access the payment details page, please refer to <a href="https://safepay.helpscoutdocs.com/article/49-payment-details">this guide</a>.</p><p>Scrolling down, you’ll see a new section called <strong>Metadata</strong>. Over here you can find the source of the payment and its associated external order id. For instance, in the above image, the order originated from a Woocommerce website with an external order id of 45678.</p><h4>What do you need to do?</h4><p>If you’re using one of our plugins, then there is nothing you need to do. All of this will be handled for you.</p><p>If you’ve integrated Safepay through our API and our generating the redirect link on your backend, then <strong>we highly recommend</strong> that you make a small change to your codebase and substitute the value of the source parameter to custom to avoid any confusion your team may face.</p><p>If you have any questions related to how to successfully make this change, please reach out to us at <a href="/service/mailto:integrations@getsafepay.com">integrations@getsafepay.com</a> and we will assist you.</p><h4>Note for Shopify Merchants</h4><p>If you’re using our Shopify plugin, the <strong>order id</strong> value shown on Safepay is actually the Shopify <strong><em>order reference </em></strong>number. This is because on Shopify, the order id that you see on your dashboard, is create <strong><em>after</em></strong> the customer completes the payment and is redirected back to your store. So there is no way for us to know the order id before hand. However, the <strong>order reference</strong> is as good as an order id to reconcile payments. Here are two screenshots on how it would look on Safepay and on your Shopify dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*8z1ghu1zQkhvtdiRU4Nd6w.jpeg" /><figcaption>Shopify order reference on Safepay</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*Kcxa-uj29UAWvVXj0e75tw.jpeg" /><figcaption>Shopify reference number on Shopify</figcaption></figure><h3>Conclusion</h3><p>We’ve been releasing updates and new features at the dizzying rate. If you’d like to learn more about what we’re working on, please follow us on <a href="https://www.facebook.com/safepay.pk">Facebook</a>, <a href="https://twitter.com/safepayhq">Twitter</a> and <a href="https://www.instagram.com/safepay.pk/">Instagram</a>. Additionally, if you follow our blog you’ll be notified whenever we release something new. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c2c1b42d2a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/more-flexibility-with-safepay-6c2c1b42d2a2">More flexibility with Safepay</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing, Payment Search]]></title>
            <link>https://medium.com/safepay/introducing-payment-search-55ead7a664f5?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/55ead7a664f5</guid>
            <category><![CDATA[pakistan]]></category>
            <category><![CDATA[payments]]></category>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Tue, 05 May 2020 20:12:03 GMT</pubDate>
            <atom:updated>2020-05-05T20:12:03.333Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gY6qDDi7bDDvu3ZONtTcHg.png" /></figure><p>We’re privileged to have 150+ merchants that we work with 24 hours a day to ensure that their customers are able to pay them quickly, securely and consistently. The valuable feedback we receive means we’re always busy working on future product development to solve problems that our merchants face</p><p>Today is no different. We’ve just released a new feature which you will notice the next time you log into and navigate to the payments page on your Safepay dashboard — increased search functionality. Merchants are now able search for payments by <strong>tracker</strong>, <strong>reference</strong> and <strong>email</strong>.</p><p>While the option to download your store’s ledger is still available through our export feature, merchants have been asking for ways to quickly respond to new payments or easily diagnose issues their customers are facing by being able to lookup a payment through a few key attributes. We hope this can be seen as step in the right direction! The next time you want to search for a particular transaction that has taken place on your store, you can simply use one of the three criteria to search through payments made on your Safepay Account.</p><h4>How to use the new search functionality</h4><p>When you navigate to the <strong>Payments</strong> page, you’ll see a dropdown button next to a search input bar. Choose the appropriate criteria you want to search by and enter the text you’d like to lookup. We feel most merchants will be copy-pasting tracker token, reference codes and email addresses from other systems such as their Woocommerce, Magento or personal systems. After you’ve entered the data you wish to search for <strong>press enter </strong>and your search request will be fired. To clear search results, click on the <strong>x</strong> icon embedded on the right of the search input. We’ve put together a series of short videos that will help you understand how to use this new feature more thoroughly</p><h4>Search by Tracker</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_qPbT_WXnK6AZIYqNElBzA.gif" /><figcaption>searching for a payment by its tracker</figcaption></figure><h4>Search by Reference</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ZL90UFvrJM93VO2FJlzxaw.gif" /><figcaption>searching for a payment by its reference code</figcaption></figure><h4>Search by Email</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*EvhxXeZ6RPTTHtZAhvp4yA.gif" /><figcaption>searching for multiple payments by email address</figcaption></figure><h4>Important to note</h4><p>Searching for payments through the <strong>tracker </strong>or <strong>reference </strong>will only provide you with one search result. This is because, each payment has a unique tracker token attached to it and each <strong>successful</strong> payment has a unique reference code attached to it.</p><p>Searching by <strong>emails</strong> on the other hand will return a paginated list of all transactions that have been recorded against the email address on your store. This will include all kinds of payments including <strong>completed</strong>, <strong>abandoned</strong> and <strong>failed</strong> payment attempts. We think this will help you serve your customers better by assisting them quickly when issues arise.</p><h4>Conclusion</h4><p>We’ve got some more exciting releases in the pipeline to help merchants reduce time spent and confusion on reconciliation between their Safepay Account and their store. We’d love to hear from you if you think there’s a feature we haven’t thought of before that would make your life easier.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55ead7a664f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/introducing-payment-search-55ead7a664f5">Introducing, Payment Search</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coming full circle with refunds]]></title>
            <link>https://medium.com/safepay/coming-full-circle-with-refunds-7ccd9789c475?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ccd9789c475</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[pakistan]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Mon, 06 Apr 2020 20:09:58 GMT</pubDate>
            <atom:updated>2020-04-06T20:09:58.596Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A-wM9pQW5zbi3QA-" /><figcaption>Photo by <a href="https://unsplash.com/@nate_dumlao?utm_source=medium&amp;utm_medium=referral">Nathan Dumlao</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We’re constantly working to challenge the status quo for online payments in Pakistan. When we launched Safepay, one of our core features was to empower merchants to make quick and easy refunds.</p><p>Easy refunds benefit both the merchant and their customer, and generally makes the world a happier place. A merchant can easily refund any transaction directly from their Safepay merchant dashboard — no need for calls and emails to unhelpful customer support. As long as you have a positive balance in your Safepay account, you can refund your customer. The refunded amount usually shows up in the customer’s account within 7–10 business days.</p><p>Now, we’re super excited to launch an even more useful feature for our merchants — partial refunds. Previously a merchant would only be able to refund the entire amount of a transaction. Partial refunds now allow a merchant to refund any amount less than the entire transaction value. This feature will save merchants time and pain. A merchant is now able to surgically decide amounts to refund to keep their customers happy and also resolve any chargebacks or disputes raised quickly.</p><p>We believe easy refunding is important to grow the trust in making online payments in Pakistan. This feature is now live and available for every merchant using Safepay. Please <a href="/service/mailto:support@getsafepay.com">email</a> us if you notice any issues or have any concerns.</p><p>To take advantage of this feature as a merchant, learn more by reading our <a href="https://safepay.helpscoutdocs.com/article/43-refunding-your-customer">refund guide</a> on our <a href="https://safepay.helpscoutdocs.com/">knowledge center</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ccd9789c475" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/coming-full-circle-with-refunds-7ccd9789c475">Coming full circle with refunds</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discounts With a Twist]]></title>
            <link>https://medium.com/safepay/discounts-with-a-twist-c49b52606319?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/c49b52606319</guid>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 18:39:44 GMT</pubDate>
            <atom:updated>2020-03-29T18:39:44.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*BeK6Q_XSDtz4l0EVT_vG0Q.png" /></figure><p>When we launched Safepay, there was only the Checkout. We were confident this was the solution that the local market required, but continuous feedback from our merchants made us develop Quick Links and Connect. We’re now pleased to announce the release of our latest feature to unlock further growth for our partners — discounts.</p><p>You may have noticed how when you pay using your credit or debit card in certain restaurants and stores, you receive a discount on the retail price. These discounts were previously only available at physical stores. Not anymore. We’ve launched our discounts feature this month which allows any e-commerce merchant using Safepay Checkout, or anybody else using Quick Links to recreate this experience for their customers.</p><p>Offering discounts can be a powerful marketing strategy for any business. Many merchants build relationships with banks to offer cardholders with different tiers of cards, discounts on goods and services purchased.</p><p>Using the Safepay dashboard, you can offer your customers a percentage discount on products that you sell online. You can also specify a minimum order amount before the discount will be applied as well as a maximum discount amount. You can then associate multiple card schemes to the discount and enable it to allow your customers to avail the discount during checkout.</p><p>Start offering these discounts only with Safepay!</p><p>Here is a detailed guide on how to create, configure and enable discounts for your customers.</p><p><a href="https://safepay.helpscoutdocs.com/article/51-how-to-setup-discounts-on-safepay?fbclid=IwAR1qxN_Z7br_ngtl3jdoK3hZc1fTp7k1yPc2atOOrVucie33Cngrc-fRslA">https://safepay.helpscoutdocs.com/article/51-how-to-setup-discounts-on-safepay</a></p><p>In case you’re not in the mood to read, we’ve also created a video that shows you how to do everything in the guide! Watch the video tutorial here —</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfZAsrvbXSuc%3Fstart%3D237%26feature%3Doembed%26start%3D237&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfZAsrvbXSuc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfZAsrvbXSuc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7be5213e29cc84d28d536438cd2796d0/href">https://medium.com/media/7be5213e29cc84d28d536438cd2796d0/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c49b52606319" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/discounts-with-a-twist-c49b52606319">Discounts With a Twist</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Links — Increased recipients]]></title>
            <link>https://medium.com/safepay/quick-links-increased-recipients-8b9278806d5?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b9278806d5</guid>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 18:36:43 GMT</pubDate>
            <atom:updated>2020-03-29T18:36:43.772Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Quick Links — Increased recipients</strong></h3><p>We initially launched Quick Links for merchants that did not have an e-commerce website. If you don’t know what aQuick Link is, read about it <a href="https://medium.com/safepay/introducing-quick-bill-a-url-that-gets-you-paid-8e9ea4669e0a">here</a></p><p>The simplicity of being able to send a Quick Link through email, Whatsapp or Instagram meant that uptake has been very strong among those in the conversational commerce space. With a Quick Link, your customer can pay you online using their credit or debit card, without a merchant from making the investment in creating an e-commerce website.</p><p>Gym owners offering online classes, personal tutors and even doctors are now using Safepay to receive online payments using Quick Links.</p><p>Previously, you would have to generate separate Quick Links, copy and paste these into separate emails and send these individually to each customer one by one (which could be quite tedious….). Not anymore. We’ve now added a new feature to Quick Links to make them even more convenient. You can now generate one Quick Link and send this directly from your merchant dashboard to up to 10 separate recipients by email.</p><p>The same great functionality of your Safepay dashboard still applies, so you can monitor which Quick Links have been paid and which are outstanding. Once you have created and sent these links, you will be redirected to your Quick Links dashboard.</p><p>Learn more here — <a href="https://safepay.helpscoutdocs.com/category/34-quick-links">https://safepay.helpscoutdocs.com/category/34-quick-links</a></p><p>Or watch the video tutorial here —</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5CLOsJhdNek%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5CLOsJhdNek&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5CLOsJhdNek%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9683adc108216ee16c0126271904976/href">https://medium.com/media/c9683adc108216ee16c0126271904976/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b9278806d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/quick-links-increased-recipients-8b9278806d5">Quick Links — Increased recipients</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One year on]]></title>
            <link>https://medium.com/safepay/one-year-on-f25e9ce349b2?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/f25e9ce349b2</guid>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 18:35:39 GMT</pubDate>
            <atom:updated>2020-03-29T18:35:39.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L5cGrgveIJEoZ0jJ" /><figcaption>Photo by <a href="https://unsplash.com/@ahsan19?utm_source=medium&amp;utm_medium=referral">Ahsan S.</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We’re coming close to our first birthday! We wish the circumstances around the world were better so we could celebrate appropriately, but these are challenging times and we hope that everyone reading this is safe and healthy.</p><p>In the last year we’ve received a tremendous response from our customers and we’d like to personally thank you for the opportunity in helping you receive online payments. We’ve really enjoyed the journey and getting to know each and every one of you.</p><p>Your role in our organic growth has helped us gain new merchants. More importantly, it has given us the drive to continuously improve and launch new products.</p><p>Some of what we’ve achieved in the last year:</p><ul><li>Launched Quick Bills</li><li>Launched Connect</li><li>On-boarded over 100 merchants</li><li>Grown our team to 5 members</li><li>Launched credit and debit card discount functionality</li><li>Launched the ability to send multiple Quick Links</li><li>Launched plugins for Magento 1, Magento 2 and Shopify</li></ul><p>We’re super excited as to what the future holds. Thanks to your feedback we will be launching exciting products in the coming months and hope to double down on what we really love doing — providing our merchants with the smoothest online payment experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f25e9ce349b2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/one-year-on-f25e9ce349b2">One year on</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transaction Integrity]]></title>
            <link>https://medium.com/safepay/transaction-integrity-b91a0f90010b?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/b91a0f90010b</guid>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[pakistan]]></category>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Tue, 24 Dec 2019 20:25:50 GMT</pubDate>
            <atom:updated>2019-12-24T20:25:50.064Z</atom:updated>
            <content:encoded><![CDATA[<p>After we launched Safepay Checkout, we knew security would have to be our utmost priority. To keep that principle top of our mind we have followed best practices both in terms of the software we write to process hundreds of thousands of dollars worth of payments each month, to the infrastructure we configure to host that software on. And while for the most part we have shielded our partners from the responsibility of having to verify their own transactions, we feel that it’s equally important to share that responsibility in order to get peace of mind for all parties involved.</p><p>Starting today Safepay will begin to sign every single transaction for all partners that wish to opt into this new flow.</p><h4>Activating API Settings</h4><p>If you’re a Safepay partner and have either integrated our Checkout through our Javascript library or installed one of our e-commerce plugins, you can now opt in to having your transactions signed by going to your dashboard and activating your API settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WfjfbuHpHWl_4jpCr74wZA.png" /></figure><h4>Webhook Secret Key</h4><p>Your <strong>webhook secret key </strong>is used to sign all your transaction on your system. It is also the key you should use to verify the signature on your end. Please keep it secure on your servers on in your environment variables to prevent any unauthorized use. A bad actor with access to your key could theoretically sign transactions and fool your system into believing they’re real. If, however, you feel that your key has been compromised, you can always come back to your dashboard and regenerate your key.</p><blockquote>Signature verification is handled automatically for e-commerce plugin users</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XaXWXaqJvxGDkKI2DRbIGQ.png" /></figure><h4>Signing Transactions</h4><p>Every successful transaction will now have an additional property returned with payload, called signature. We recommend that you pass this parameter back to your servers and verify this signature with your secret key by computing it with one of the various code samples we’re providing below.</p><h4>Verifying Signatures</h4><p>Safepay takes the transaction tracker and computes an HMAC with the SHA256 hash function and your secret key. Here are various implementations of the signature generation process that you can modify and use to compute the signature on your servers in order to verify.</p><h4>PHP</h4><pre>&lt;?php<br><br>$key = &#39;the shared secret key here&#39;;<br>$message = &#39;track_12312312&#39;;<br><br>// to lowercase hexits<br>$signature = hash_hmac(&#39;sha256&#39;, $message, $key);</pre><h4>NodeJS</h4><pre>var crypto = require(&#39;crypto&#39;);<br><br>var key = &#39;the shared secret key here&#39;;<br>var message = &#39;track_12312312&#39;;<br><br>var hash = crypto.createHmac(&#39;sha256&#39;, key).update(message);<br><br>// to lowercase hexits<br>var signature = hash.digest(&#39;hex&#39;);</pre><h4>Python 3</h4><pre>import hashlib<br>import hmac<br>import base64<br><br>message = bytes(&#39;the message to hash here&#39;, &#39;utf-8&#39;)<br>secret = bytes(&#39;track_12312312&#39;, &#39;utf-8&#39;)<br><br>hash = hmac.new(secret, message, hashlib.sha256)<br><br># to lowercase hexits<br>signature = hash.hexdigest()</pre><h4>C#</h4><pre>using System;<br>using System.Security.Cryptography;<br>using System.Text;<br><br>class MainClass {<br>  public static void Main (string[] args) {<br>    string key = &quot;the shared secret key here&quot;;<br>    string message = &quot;the message to hash here&quot;;<br>    <br>    byte[] keyByte = new ASCIIEncoding().GetBytes(key);<br>    byte[] messageBytes = new ASCIIEncoding().GetBytes(message);<br>    <br>    byte[] hashmessage = new HMACSHA256(keyByte).ComputeHash(messageBytes);<br>    <br>    // to lowercase hexits<br>    string signature = String.Concat(Array.ConvertAll(hashmessage, x =&gt; x.ToString(&quot;x2&quot;)));<br>  }<br>}</pre><p><em>(If you need an example in any other language, please let us know in the comments below)</em></p><p>After computing the signature on your end, verify if the signature returned from Safepay is the same as the one that was computed. If they’re equal, go ahead and process the transaction. If they’re different, then reject the transaction and mark it as suspicious as someone could be attempting to tamper with your system.</p><h4>Conclusion</h4><p>Transaction signatures are a good way to mitigate bad actors from faking orders on your website with data that looks real but may not be. If you choose to opt into this and have any questions, please reach out at <a href="http://help@getsafepay.com/">help@getsafepay.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b91a0f90010b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/transaction-integrity-b91a0f90010b">Transaction Integrity</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improvements to email receipts]]></title>
            <link>https://medium.com/safepay/improvements-to-email-receipts-b7e8516608fd?source=rss-52bc5c9d9247------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7e8516608fd</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[email-receipts]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[payments]]></category>
            <dc:creator><![CDATA[Ziyad Parekh]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 21:01:18 GMT</pubDate>
            <atom:updated>2019-11-25T21:01:18.242Z</atom:updated>
            <content:encoded><![CDATA[<p>Many Safepay users send email receipts for payments, and we’ve received a lot of requests to support sending receipts directly from Safepay. While support for sending automated receipts was always present from day one, the email templates were always undergoing constant change to reflect partner feedback. As with everything we try to do, we want to make common cases — like sending receipts — easy.</p><p>We’re excited to share a couple of improvements to our email receipts! We’ve learned a lot since launching the feature over 5 months ago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GXd0RazhJFvzlpVMXxFTNQ.jpeg" /></figure><h3>A receipt for every charge</h3><p>Safepay will automatically email your customers whenever they purchase a good or service from your store, through a <a href="https://www.getsafepay.com/billing">Quick Bill</a> or through your <a href="https://www.getsafepay.com/safe-id">Connect Profile</a>.</p><h3>A receipt for every refund</h3><p>Receipts will also be automatically sent when you issue a refund to your customers for items that run out of stock or if they change their minds about the original purchase.</p><h3>A receipt for every authorization reversal</h3><p>Safepay will even send automated receipts when you reverse an authorization for a transaction that wasn’t captured for any number of reasons. This will give your customers the confidence that their funds are secured and unblocked on their account.</p><h3>Conclusion</h3><p>As before, our receipts work across all popular mail clients. (Yes, they even look fine on Lotus Notes 8.) We’re always looking to make receipts more useful for you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7e8516608fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/safepay/improvements-to-email-receipts-b7e8516608fd">Improvements to email receipts</a> was originally published in <a href="https://medium.com/safepay">The Safepay Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>