omise / examples Goto Github PK
View Code? Open in Web Editor NEWExamples for implementing Omise Libraries
License: GNU General Public License v2.0
Examples for implementing Omise Libraries
License: GNU General Public License v2.0
To create a ruby script that will populate the database with records for local development.
Use random numbers for the amount, and also for the description can use random words from /usr/share/dict/words
Use ruby library, such as omise-ruby
สวัสดีีครับ,
ผมลองใช้โค้ดตัวอย่างจากสคริปต์บนเซิร์ฟเวอร์ดู ปรากฏว่าพอ checkout เสร็จแล้วมันจะรีไดเรคไปยัง services/checkout.php ทีนี้ในไฟล์ config.php บรรทัดที่ 3 มันจะต้อง include autoload.php
ใน vendor
ผมหาโฟลเดอร์นี้ไม่เจอ ทั้งในไฟล์ตัวอย่างและใน git ดัง error ด้านล่างนี้ครับ
Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in /home/xxx/omise/config.php on line 3
<form id="checkoutForm1" name="checkoutForm1" method="POST" action="payment_2.php">
<input type="hidden" name="amount" value="10000">
<button type="submit" id="checkout1"><img src="https://www.xxx.com/images/L_click2buy.gif" /> 100</button>
</form>
<form id="checkoutForm2" name="checkoutForm2" method="POST" action="payment_2.php">
<input type="hidden" name="amount" value="20000">
<button type="submit" id="checkout2"><img src="https://www.xxx.com/images/L_click2buy.gif" /> 200</button>
</form>
<!-- Include card.js library -->
<script type="text/javascript" src="https://cdn.omise.co/omise.js"></script>
<!-- Config the card.js library -->
<script type="text/javascript">
// Set default parameters
OmiseCard.configure({
publicKey: 'pkey_test_xxx',
image: 'http://www.xxx.com/images/logo.png',
frameLabel: 'xxx.com',
submitLabel: 'PAY NOW'
});
// Configuring your own custom button
OmiseCard.configureButton('#checkout1', {
amount: 10000,
submitFormTarget: '#checkoutForm1'
});
OmiseCard.configureButton('#checkout2', {
amount: 20000,
submitFormTarget: '#checkoutForm2'
});
// Then, attach all of the config and initiate it by 'OmiseCard.attach();' method
OmiseCard.attach();
</script>
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.