Comments (2)
Hello,
I'm trying to place an order from saved card using REST API. I've successfully placed order for guest customer. For that we've to pass stripe_token , last 4 digit, exp. month & year. And Order are placing successfully.
But I'm not getting how to place order using saved card. and what data is need to pass in magento 2 REST API to place an order using saved card.
The way I'm using stripe payment for guest customer is like -
Passing card data to stripe API , getting stripe token and then pass this token to magento 2 API. Here is an example.
<?php $data = array ( 'paymentMethod' => array( 'method' => 'pmclain_stripe', 'additional_data' => array( 'cc_cid' => '', 'cc_ss_start_month' => '', 'cc_ss_start_year' => '', 'cc_ss_issue' => '', 'cc_type' => Visa, 'cc_exp_year' => 21, 'cc_exp_month' => 12, 'cc_number' => '4111111111111111', 'cc_last4' => '1111', 'cc_token' => 'token_from_stripe', ), ), 'billing_address' => array ( 'email' => 'email', 'region' => 'state', 'regionId'=>'region_id', 'telephone'=> 'telephone', 'country_id' => 'country', 'street' => array ( 0 => 'address', 1 => 'addressline2' ), 'postcode' => 'postcode', 'city' => 'city', 'firstname' => 'firstname', 'lastname' => 'lastname' ), 'email' => 'email' ); $paymentInfo = 'https://mymagentourl.com/index.php/rest/default/V1/carts/mine/payment-information'; ?>
But I'm not getting what data need to pass for saved card method.
Please help me to do this.
from module-stripe.
How did you pass the stripe_token through REST?
from module-stripe.
Related Issues (20)
- Getting network error HOT 5
- Thanks!
- Checkout messages are not the ones returned by Stripe HOT 1
- Error install HOT 1
- Cannot use Magento\Braintree\Gateway\Request\PaymentDataBuilder as PaymentDataBuilder because the name is already in use in /home/bventureuser/public_html/vendor HOT 1
- No Support for Zero-Decimal Currencies HOT 4
- Question - Apple and Google Pay HOT 1
- Fatal error: Trait HOT 6
- Invalid Integer
- Could not determine which URL to request: Stripe\Source instance has invalid ID: HOT 2
- Compatibility with 2.2.6 ? HOT 3
- Stripe.js theme selection HOT 3
- Official Stripe Solution Available HOT 6
- Fatal Error: 'Uncaught Error: Class 'Stripe\\Stripe' not found HOT 3
- Unsupported declare 'strict_types' in Magento V-2.3.0 HOT 1
- pmclain/module-stripe v2.1.1 requires magento/framework ~101.0.5||~100.3.0-dev -> no matching package found
- SCA HOT 3
- cant see stripe on checkout HOT 1
- Unable do complete payment with saved card
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from module-stripe.