mage2pro / stripe

Stripe integration with Magento 2
https://upwork.com/fl/mage2pro
61 stars 7 forks source link

When Re-use same source and customer cust id during store first payment it display resuable attachment of customer [stripe version ## 6.37.0 - 2019-05-23] #82

Closed 123-alt closed 5 years ago

123-alt commented 5 years ago

For create charge i use store source and cust id: $charge = \Stripe\Charge::create ([ "amount": "5000", "currency": "INR", "source": "src_1EkOa0JQLenem8lFrOJ28C7w", "customer": "cus_FEsK3tdB918tuq", "description": "Test payment from webpreparations" ]);

Error: { "error": { "message": "The reusable source you provided is consumed because it was previously charged without being attached to a customer or was detached from a customer. To charge a reusable source multiple time you must attach it to a customer first.", "type": "invalid_request_error" } }

dmitrii-fediuk commented 5 years ago

Buy the module's license first: https://mage2.pro/t/980. Then I will solve your problem.