Soru & Cevap

Stripe Hatası ...

31.10.2020 - 03:11

Merhaba Aşağıda Vereceğim Resimdeki Hattalarda Bana Yardımcı Olurmusunuz Ben Hemen Hemen Bir Haftadır Uğrasıyorum Ve Yapamıyorum Yardımcı Olursanız Çok Mutlu Olurum

Görsel kaldırıldı.

61 Görüntülenme

5 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

Profile picture for user .tire.
.tire.
02.11.2020 - 01:12
https://stripe.com/docs/payments/accept-a-payment-charges tüm proje kaynak dokümanları burda android olanı seç android kodları dokümanı çıkar
Profile picture for user .tire.
.tire.
02.11.2020 - 01:08
PaymentConfiguration kütüphanesi ni import edip bir sınıfa çıkarman lazım diğer sınıfta ise getApplicationContext referansı ile değerlerini okuman lazım hata yapmışsın
Profile picture for user .tire.
.tire.
02.11.2020 - 01:01
Button payButton = findViewById(R.id.payButton); WeakReference weakActivity = new WeakReference<>(this); payButton.setOnClickListener((View view) -> { // Get the card details from the card widget CardInputWidget cardInputWidget = findViewById(R.id.cardInputWidget); Card card = cardInputWidget.getCard(); if (card != null) { // Create a Stripe token from the card details stripe = new Stripe(getApplicationContext(), PaymentConfiguration.getInstance(getApplicationContext()).getPublishableKey()); stripe.createToken(card, new ApiResultCallback() { @Override public void onSuccess(@NonNull Token result) {
Profile picture for user .tire.
.tire.
02.11.2020 - 12:58
import com.stripe.android.PaymentConfiguration; public class MyApp extends Application { @Override public void onCreate() { super.onCreate(); PaymentConfiguration.init( getApplicationContext(), "pk_test_TYooMQauvdEDq54NiTphI7jx" ); } }
Profile picture for user .tire.
.tire.
01.11.2020 - 12:33
araya bir context referansı göster
Mahmut Çelik
01.11.2020 - 05:24
Hocam Ne Kadar Uğraştıysam Olmadı Bana Bu Konuda Yardımcı Olurmusunuz