Paymill pre-create card payment - ruby-on-rails

Is there a way to pre-create a card payment for Paymill? When creating a Paymill Payment object we need a token, this token is got by provide card info and amount/currency. With the first transaction of this payment object, Paymill require the same ammount/currency as the value we use to get the token. So the user can't create a payment for future transaction because they don't know how much they pay for the first transaction?
Thanks

you could do it in the following way. Create a token with an amount/currency for example 100 Euro (but not smaller than 1 Euro!). Afterwards make directly with this token a preauth transaction. You get an paymentobjectid as response and the creditcard is checked if it is valid and has at this time the wanted amount (limit is not exceeded). This preauth is valid for 7 days and afterwards it is deleted automatically or your make a reversal of the preauth. With the paymentobjectid you can than make another recurring payment with a different amount.
Best,
Christian

Related

Square - How to get ApplicationID using OAuth for Payment Form

Can someone help me to understand how make Payment Form works for merchants?
I am working on ECommerce site where merchants can sell their products. To use Square as payment provider I used OAuth to retrieve access token (which works fine).
To take payment I use Payment Form (to get card nonce). On Payment Form init I need to send ApplicationID & LocationId. I'am able to get last one but not the first one param.
If I try to use my own ApplicationID I get the error on Transactions/Charge
{
"errors":[{
"category":"INVALID_REQUEST_ERROR",
"code":"NOT_FOUND",
"detail":"Card nonce not found in this `sandbox` application environment. Please ensure an application ID belonging to the same environment is used for the SqPaymentForm."
}]
}
This error happens when you use a combination of sandbox application Ids and production application Ids. I'm guessing that you are using your correct application id, and attempting to charge with your sandbox access token.
If you want to take a sandbox payment with the payment form, use your sandbox application id, it should look like sandbox-sq0idp-XXXXXXXXXXXXXXXXXXX
Each merchant must use their own credentials to load locations. You must send the merchant locationId selected and their access_token to do the charge in its account.
Carlos

Generating token in Stripe on server Side

I want to create some tests to check my subscription failed processus.
At first I use a good working card (42...) and subscribe then I want to update the card of the Stripe Customer with the bad working card (40...4) to check the code of my webhook in case of failed subscription.
The problem I encounter, is to update a customer card, I should have a token, but my tests are written only server side (no javascript).
Is there any way to generate a token from server-side with Stripe?
Thanks in advance

Bill Payment Check - Object specified in the request cannot be found

I'm using C# and QBFC13 to connect to the desktop edition of QB Enterprise 13. I'm creating Bills and then creating a Bill Payment Check to pay those bills. I keep getting the error "Object 48E-1425590500 specified in the request cannot be found." That number is the TxnID of the bill the check is paying. I'm 100% sure I'm using the correct TxnID because I got it directly from the Bill. The relevant code is below. Any assistance would be greatly appreciated.
billPaymentCheck.PayeeEntityRef.FullName.SetValue(payee);
billPaymentCheck.BankAccountRef.FullName.SetValue(reader["BankAccount"].ToString());
billPaymentCheck.APAccountRef.FullName.SetValue(reader["APAccount"].ToString());
billPaymentCheck.Memo.SetValue(reader["Memo"].ToString());
billPaymentCheck.ORCheckPrint.IsToBePrinted.SetValue(false);
IAppliedToTxnAdd txn = billPaymentCheck.AppliedToTxnAddList.Append();
txn.TxnID.SetValue(bill.TxnID.GetValue());
txn.PaymentAmount.SetValue((double)reader["Amount"]);
First check to see if the Accounts Payable account for the Bill is the same as the Bill Payment. You can change your code to use the Bill's AP Account instead of from your reader and see if that works.
billPaymentCheck.APAccountRef.FullName.SetValue(bill.APAccountRef.FullName.GetValue());
Another thing to check is that the Payee is the exact same for the Bill and Bill Payment.
billPaymentCheck.PayeeEntityRef.FullName.SetValue(bill.VendorRef.FullName.GetValue());

Stripe card authentication passed from iPhone, failed on server

The card was validated by Stripe's iPhone code, where I create a card, send to their server and receive a stripe token.
When I charge that token, the server receives an error from Stripe saying invalid CVC.
I checked Zip code & CVC verification required in my account settings.
Is there a way to authenticate the credit card prior to charging it?
You can pre-validate any or all of the card data beforehand—check out the Validation section of the documentation.
To deal with ZIP code mismatches or incorrect CVV data, you'll have to implement appropriate error handling on both your server and client.
If you haven't worked with other payment processors before, this is not specific to Stripe. CVV is generated with private encryption keys and can only be verified by trusted parties (i.e. the issuing banks). The payment card industry's not in the habit of enabling brute force attacks, so you must actually post a charge to determine whether card validation data is correct.
There is no way to know the data is correct until you attempt a charge—if that charge is rejected for reasons of incorrect data, that's how you know it's incorrect. It's how the payment network functions, and it's how your application must function.

PayPal Sandbox - CreateBillingAgreement call returns Internal Error (10001)

I'd appreciate any help with this, I've run around in circles trying all sorts of combinations with the PayPal Api - but I'm hitting a brick wall on this one.
I'm looking to call the CreateBillingAgreement method but each time I do it fails and reports a 10001 'internal error' from paypal in the response.
I have a valid token and I'm using version 84.0. I've successfully called SetupExpressCheckout and DoExpressCheckout, both of which succeed and the payment goes through. I'm setting up a future payment / pre-authorisation on the SetupExpressCheckout and the user agrees to that no problems.
​Do I need to change settings on the merchant in the sandbox? Am I calling things in the wrong order maybe? (SetExpress, GetExpress, DoExpress, CreateBilling)?
​I'm looking to use this billing agreement to allow a reference transaction in the future. I'm having a test account 'pay' using paypal and not forwarding any credit card details, the payment is for a digital service with no delivery (no shipping is set, no addresses or delivery costs are involved). The overall goal is to provide a one-click re-order button, whereby no details need to be entered by the customer.
I'm using the C# api in asp.net 4, or more specifically I've created Service References from the paypal sandbox wsdl and I'm using those in asp.net.
​Any and all help is appreciated - thanks.
​Russell.
You don't need to call CreateBillingAgreement if you're specifying billingtype MerchantInitiatedBilling in your SetExpressCheckout and DoExpressCheckoutPayment API call. CreateBillingAgreement is only necessary if you don't want to call DoExpressCheckoutPayment.
If MerchantInitiatedBilling is set, DoExpressCheckoutPayment will already return a billing agreement ID, which you can use in DoReferenceTransaction.
I don't have access to an example at hand, but will update this post as soon as I've found one for you.

Resources