-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
33,012 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 899fb1875e8697de7c43f9de5f1f8a8d | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" > | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Overview: module code — pypaystack2 1.0.0 documentation</title> | ||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> | ||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> | ||
<!--[if lt IE 9]> | ||
<script src="../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> | ||
<script src="../_static/jquery.js"></script> | ||
<script src="../_static/underscore.js"></script> | ||
<script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> | ||
<script src="../_static/doctools.js"></script> | ||
<script src="../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../genindex.html" /> | ||
<link rel="search" title="Search" href="../search.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
<a href="../index.html" class="icon icon-home"> pypaystack2 | ||
</a> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../paystack-client-turorial.html">Tutorial 1</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../modules.html">pypaystack2</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../index.html">pypaystack2</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../index.html" class="icon icon-home"></a> »</li> | ||
<li>Overview: module code</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<h1>All modules for which code is available</h1> | ||
<ul><li><a href="pypaystack2/api/apple_pay.html">pypaystack2.api.apple_pay</a></li> | ||
<li><a href="pypaystack2/api/bulk_charges.html">pypaystack2.api.bulk_charges</a></li> | ||
<li><a href="pypaystack2/api/charge.html">pypaystack2.api.charge</a></li> | ||
<li><a href="pypaystack2/api/control_panel.html">pypaystack2.api.control_panel</a></li> | ||
<li><a href="pypaystack2/api/customers.html">pypaystack2.api.customers</a></li> | ||
<li><a href="pypaystack2/api/dedicated_accounts.html">pypaystack2.api.dedicated_accounts</a></li> | ||
<li><a href="pypaystack2/api/disputes.html">pypaystack2.api.disputes</a></li> | ||
<li><a href="pypaystack2/api/invoices.html">pypaystack2.api.invoices</a></li> | ||
<li><a href="pypaystack2/api/miscellaneous.html">pypaystack2.api.miscellaneous</a></li> | ||
<li><a href="pypaystack2/api/payment_pages.html">pypaystack2.api.payment_pages</a></li> | ||
<li><a href="pypaystack2/api/plans.html">pypaystack2.api.plans</a></li> | ||
<li><a href="pypaystack2/api/products.html">pypaystack2.api.products</a></li> | ||
<li><a href="pypaystack2/api/refunds.html">pypaystack2.api.refunds</a></li> | ||
<li><a href="pypaystack2/api/settlements.html">pypaystack2.api.settlements</a></li> | ||
<li><a href="pypaystack2/api/splits.html">pypaystack2.api.splits</a></li> | ||
<li><a href="pypaystack2/api/subaccounts.html">pypaystack2.api.subaccounts</a></li> | ||
<li><a href="pypaystack2/api/subscriptions.html">pypaystack2.api.subscriptions</a></li> | ||
<li><a href="pypaystack2/api/transactions.html">pypaystack2.api.transactions</a></li> | ||
<li><a href="pypaystack2/api/transfer_recipients.html">pypaystack2.api.transfer_recipients</a></li> | ||
<li><a href="pypaystack2/api/transfers.html">pypaystack2.api.transfers</a></li> | ||
<li><a href="pypaystack2/api/transfers_control.html">pypaystack2.api.transfers_control</a></li> | ||
<li><a href="pypaystack2/api/verification.html">pypaystack2.api.verification</a></li> | ||
<li><a href="pypaystack2/baseapi.html">pypaystack2.baseapi</a></li> | ||
<li><a href="pypaystack2/errors.html">pypaystack2.errors</a></li> | ||
<li><a href="pypaystack2/utils.html">pypaystack2.utils</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
<footer> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2022, Gbenga Adeyi <coyotedevmail@gmail.com>.</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" > | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>pypaystack2.api.apple_pay — pypaystack2 1.0.0 documentation</title> | ||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> | ||
<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" /> | ||
<!--[if lt IE 9]> | ||
<script src="../../../_static/js/html5shiv.min.js"></script> | ||
<![endif]--> | ||
|
||
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> | ||
<script src="../../../_static/jquery.js"></script> | ||
<script src="../../../_static/underscore.js"></script> | ||
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script> | ||
<script src="../../../_static/doctools.js"></script> | ||
<script src="../../../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../../search.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
<a href="../../../index.html" class="icon icon-home"> pypaystack2 | ||
</a> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../modules.html">pypaystack2</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../../paystack-client-turorial.html">Paystack Command line Client</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../../../index.html">pypaystack2</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../../../index.html" class="icon icon-home"></a> »</li> | ||
<li><a href="../../index.html">Module code</a> »</li> | ||
<li>pypaystack2.api.apple_pay</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<h1>Source code for pypaystack2.api.apple_pay</h1><div class="highlight"><pre> | ||
<span></span><span class="kn">from</span> <span class="nn">..baseapi</span> <span class="kn">import</span> <span class="n">BaseAPI</span><span class="p">,</span> <span class="n">Response</span> | ||
|
||
|
||
<div class="viewcode-block" id="ApplePay"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay">[docs]</a><span class="k">class</span> <span class="nc">ApplePay</span><span class="p">(</span><span class="n">BaseAPI</span><span class="p">):</span> | ||
<span class="sd">"""Provides a wrapper for paystack Apple Pay API</span> | ||
|
||
<span class="sd"> The Apple Pay API allows you register your application's top-level domain or subdomain.</span> | ||
<span class="sd"> https://paystack.com/docs/api/#apple-pay</span> | ||
<span class="sd"> """</span> | ||
|
||
<div class="viewcode-block" id="ApplePay.register_domain"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay.register_domain">[docs]</a> <span class="k">def</span> <span class="nf">register_domain</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">domain_name</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-></span> <span class="n">Response</span><span class="p">:</span> | ||
<span class="sd">"""Register a top-level domain or subdomain</span> | ||
<span class="sd"> for your Apple Pay integration.</span> | ||
|
||
<span class="sd"> Parameters</span> | ||
<span class="sd"> ----------</span> | ||
<span class="sd"> domain_name: str</span> | ||
<span class="sd"> Domain name to be registered</span> | ||
|
||
<span class="sd"> Returns</span> | ||
<span class="sd"> -------</span> | ||
<span class="sd"> Response</span> | ||
<span class="sd"> A named tuple containing the response gotten from paystack's server.</span> | ||
|
||
<span class="sd"> Note</span> | ||
<span class="sd"> ----</span> | ||
<span class="sd"> This method can only be called with one domain or subdomain at a time.</span> | ||
<span class="sd"> """</span> | ||
|
||
<span class="n">url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_url</span><span class="p">(</span><span class="s2">"/apple-pay/domain"</span><span class="p">)</span> | ||
<span class="n">payload</span> <span class="o">=</span> <span class="p">{</span> | ||
<span class="s2">"domainName"</span><span class="p">:</span> <span class="n">domain_name</span><span class="p">,</span> | ||
<span class="p">}</span> | ||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_handle_request</span><span class="p">(</span><span class="s2">"POST"</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">payload</span><span class="p">)</span></div> | ||
|
||
<div class="viewcode-block" id="ApplePay.get_domains"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay.get_domains">[docs]</a> <span class="k">def</span> <span class="nf">get_domains</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-></span> <span class="n">Response</span><span class="p">:</span> | ||
<span class="sd">"""Fetches all registered domains on your integration.</span> | ||
<span class="sd"> Returns an empty array if no domains have been added.</span> | ||
|
||
<span class="sd"> Returns</span> | ||
<span class="sd"> -------</span> | ||
<span class="sd"> Response</span> | ||
<span class="sd"> A named tuple containing the response gotten from paystack's server.</span> | ||
<span class="sd"> """</span> | ||
|
||
<span class="n">url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_url</span><span class="p">(</span><span class="s2">"/apple-pay/domain"</span><span class="p">)</span> | ||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_handle_request</span><span class="p">(</span><span class="s2">"GET"</span><span class="p">,</span> <span class="n">url</span><span class="p">)</span></div> | ||
|
||
<div class="viewcode-block" id="ApplePay.unregister_domain"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay.unregister_domain">[docs]</a> <span class="k">def</span> <span class="nf">unregister_domain</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">domain_name</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-></span> <span class="n">Response</span><span class="p">:</span> | ||
<span class="sd">"""Unregister a top-level domain or</span> | ||
<span class="sd"> subdomain previously used for your</span> | ||
<span class="sd"> Apple Pay integration.</span> | ||
|
||
<span class="sd"> Returns</span> | ||
<span class="sd"> -------</span> | ||
<span class="sd"> Response</span> | ||
<span class="sd"> A named tuple containing the response gotten from paystack's server.</span> | ||
<span class="sd"> """</span> | ||
|
||
<span class="n">url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_url</span><span class="p">(</span><span class="s2">"/apple-pay/domain"</span><span class="p">)</span> | ||
<span class="n">payload</span> <span class="o">=</span> <span class="p">{</span> | ||
<span class="s2">"domainName"</span><span class="p">:</span> <span class="n">domain_name</span><span class="p">,</span> | ||
<span class="p">}</span> | ||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_handle_request</span><span class="p">(</span><span class="s2">"DELETE"</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">payload</span><span class="p">)</span></div></div> | ||
</pre></div> | ||
|
||
</div> | ||
</div> | ||
<footer> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright 2022, Gbenga Adeyi <coyotedevmail@gmail.com>.</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.