#femina-receipt

1 messages · Page 1 of 1 (latest)

raw bison
dense fable
#

I am using Create:Charge API

#

here is my code

raw bison
#

@dense fable hi! well first of all, that API is deprecated so you shouldn't use it at all.

But can you expand on what kind of details you'd like to see exatly?

dense fable
#

$charge = \Stripe\Charge::create([
'amount' => (int) $paymentLogData->getVTransactionTotalAmount() * 100, //smalled unit is cent
'currency' => $this->config['currency'],
'source' => $token,
'receipt_email' => $user->getVEmail(),
'description' => $description
]);

#

I want to display customer name , email, phone , address on receipt

#

This is how my receipt looks like.

#

Now i want to add customer detail in it.

raw bison
#

I don't think you can! https://stripe.com/docs/receipts describes how receipts work and what can be customised and I don't think you can add that kind of information, it's just not supported

dense fable
#

I have checked your document. it has only customization related to logo and color and branding settings

#

Can you please check and confirm how to add customer's billing details on receipt ?

raw bison
#

I don't think you can add that kind of information, it's just not supported

#

so your options are you could use a third-party or build your own customised receipts, of if you use Invoices for the payments instead, that might suit your use case better (https://stripe.com/docs/invoicing)

dense fable
#

Ok

#

Do you have any sugggestion for third-party to customize receipt ?

raw bison
#

I do not